DayzKode
An indexed view of Dayz source code generated by Doxygen
 
Loading...
Searching...
No Matches
RecipeBase Class Reference

Private Member Functions

void AddResult (string item)
 
void ApplyModificationsIngredients (ItemBase sorted[], PlayerBase player)
 
void ApplyModificationsResults (ItemBase sorted[], array< ItemBase > results, ItemBase result, PlayerBase player)
 
void ApplySoftSkillsSpecialty (PlayerBase player)
 
bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
override bool CanDo (ItemBase ingredients[], PlayerBase player)
 
bool CheckConditions (ItemBase sorted[])
 
bool CheckIngredientMatch (ItemBase item1, ItemBase item2)
 
bool CheckRecipe (ItemBase item1, ItemBase item2, PlayerBase player)
 
void DeleleIngredientsPass ()
 
void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
override void Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
 
void GetAllItems (array< string > items)
 
int GetID ()
 
int GetIngredientMaskForItem (string item)
 returns a mask which marks ingredient positions for a given item in this recipe(for example mask of value 3 [....000011] means this item is both ingredient 1 and 2 in this recipe[from right to left]) More...
 
float GetLengthInSecs ()
 
string GetName ()
 
float GetSpecialty ()
 
void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
override void Init ()
 
void InsertIngredient (int index, string ingredient)
 
bool IsInstaRecipe ()
 
bool IsItemInRecipe (string item)
 
bool IsRecipeAnywhere ()
 
void OnSelected (ItemBase item1, ItemBase item2, PlayerBase player)
 
override void OnSelected (ItemBase item1, ItemBase item2, PlayerBase player)
 
void OnSelectedRecipe (ItemBase item1, ItemBase item2, PlayerBase player)
 
void PerformRecipe (ItemBase item1, ItemBase item2, PlayerBase player)
 
void RecipeBase ()
 
void RemoveIngredient (int index, string ingredient)
 
void SetID (int id)
 
void SpawnItems (ItemBase ingredients[], PlayerBase player, array< ItemBase > spawned_objects)
 
void TransferItemsToNew (PlayerBase player, ItemBase barrel_old, ItemBase barrel_new)
 

Private Attributes

float m_AnimationLength = 1
 
bool m_AnywhereInInventory
 
int m_ID
 
float m_IngredientAddHealth [MAX_NUMBER_OF_INGREDIENTS]
 
float m_IngredientAddQuantity [MAX_NUMBER_OF_INGREDIENTS]
 
bool m_IngredientDestroy [MAX_NUMBER_OF_INGREDIENTS]
 
ref array< stringm_Ingredients [MAX_NUMBER_OF_INGREDIENTS]
 
float m_IngredientSetHealth [MAX_NUMBER_OF_INGREDIENTS]
 
ItemBase m_IngredientsSorted [MAX_NUMBER_OF_INGREDIENTS]
 
ref array< ItemBasem_IngredientsToBeDeleted = new array<ItemBase>
 
bool m_IngredientUseSoftSkills [MAX_NUMBER_OF_INGREDIENTS]
 
bool m_IsInstaRecipe
 
ItemBase m_Items [MAX_NUMBER_OF_INGREDIENTS]
 
string m_ItemsToCreate [MAXIMUM_RESULTS]
 
float m_MaxDamageIngredient [MAX_NUMBER_OF_INGREDIENTS]
 
float m_MaxQuantityIngredient [MAX_NUMBER_OF_INGREDIENTS]
 
float m_MinDamageIngredient [MAX_NUMBER_OF_INGREDIENTS]
 
float m_MinQuantityIngredient [MAX_NUMBER_OF_INGREDIENTS]
 
string m_Name
 
int m_NumberOfResults
 
float m_PercentageUsed = 0.05
 
int m_ResultInheritsColor [MAXIMUM_RESULTS]
 
int m_ResultInheritsHealth [MAXIMUM_RESULTS]
 
int m_ResultReplacesIngredient [MAXIMUM_RESULTS]
 
bool m_ResultSetFullQuantity [MAXIMUM_RESULTS]
 
float m_ResultSetHealth [MAXIMUM_RESULTS]
 
float m_ResultSetQuantity [MAXIMUM_RESULTS]
 
float m_ResultSpawnDistance [MAXIMUM_RESULTS]
 
int m_ResultToInventory [MAXIMUM_RESULTS]
 
bool m_ResultUseSoftSkills [MAXIMUM_RESULTS]
 
float m_Specialty = 0
 

Detailed Description

Definition at line 4 of file recipebase.c.

Constructor & Destructor Documentation

◆ RecipeBase()

void RecipeBase::RecipeBase ( )
inlineprivate

Definition at line 52 of file recipebase.c.

53 {
54
55 for(int i = 0; i < MAX_NUMBER_OF_INGREDIENTS; i++)
56 {
58 m_IngredientsSorted[i] = NULL;
59 }
60
61 for(i = 0; i < MAXIMUM_RESULTS; i++)
62 {
64 }
65
67 //m_IsActionType = false;
68
69 m_Name = "RecipeBase default name";
70 Init();
71 }
string m_Name
Definition: recipebase.c:17
void Init()
ref array< string > m_Ingredients[MAX_NUMBER_OF_INGREDIENTS]
Definition: recipebase.c:7
float m_ResultSpawnDistance[MAXIMUM_RESULTS]
Definition: recipebase.c:43
ItemBase m_IngredientsSorted[MAX_NUMBER_OF_INGREDIENTS]
Definition: recipebase.c:11
int m_NumberOfResults
Definition: recipebase.c:20
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
const float DEFAULT_SPAWN_DISTANCE
Definition: recipebase.c:3
const int MAXIMUM_RESULTS
Definition: recipebase.c:2
const int MAX_NUMBER_OF_INGREDIENTS
Definition: recipebase.c:1

References DEFAULT_SPAWN_DISTANCE, Init(), m_Ingredients, m_IngredientsSorted, m_Name, m_NumberOfResults, m_ResultSpawnDistance, MAX_NUMBER_OF_INGREDIENTS, and MAXIMUM_RESULTS.

Member Function Documentation

◆ AddResult()

void RecipeBase::AddResult ( string  item)
inlineprivate

Definition at line 153 of file recipebase.c.

154 {
157 }
string m_ItemsToCreate[MAXIMUM_RESULTS]
Definition: recipebase.c:6

References m_ItemsToCreate, and m_NumberOfResults.

Referenced by Init().

◆ ApplyModificationsIngredients()

void RecipeBase::ApplyModificationsIngredients ( ItemBase  sorted[],
PlayerBase  player 
)
inlineprivate

Definition at line 352 of file recipebase.c.

353 {
354 //---------------------- ingredients ----------------------
355 for(int i = 0; i < MAX_NUMBER_OF_INGREDIENTS; i++)
356 {
357 ItemBase ingredient = sorted[i];
358
359 if( m_IngredientDestroy[i] == 1 )//<------m_IngredientDestroy
360 {
361 if( ingredient ) m_IngredientsToBeDeleted.Insert(ingredient);
362 //ingredient.Delete();
363 //sorted[i] = NULL;
364 }
365 else
366 {
367 bool use_soft_skills = m_IngredientUseSoftSkills[i];
368
369 if( m_IngredientAddHealth[i] != 0 )//<------m_IngredientAddHealth
370 {
371 float health_delta = m_IngredientAddHealth[i];
372 if( use_soft_skills )
373 {
374 if(health_delta <0) health_delta = player.GetSoftSkillsManager().SubtractSpecialtyBonus(health_delta, m_Specialty);
375 else health_delta = player.GetSoftSkillsManager().AddSpecialtyBonus(health_delta, m_Specialty);
376 }
377 ingredient.AddHealth("","",health_delta);
378 }
379 else if(m_IngredientSetHealth[i] != -1)//<------m_IngredientSetHealth
380 {
381 float new_health = m_IngredientSetHealth[i];
382 ingredient.SetHealth("","",new_health);
383 }
384 if( m_IngredientAddQuantity[i] != 0 )//<------m_IngredientAddQuantity
385 {
386 float quantity_delta = m_IngredientAddQuantity[i];
387
388 if( use_soft_skills )
389 {
390 if(quantity_delta <0) quantity_delta = player.GetSoftSkillsManager().SubtractSpecialtyBonus(quantity_delta, m_Specialty);
391 else quantity_delta = player.GetSoftSkillsManager().AddSpecialtyBonus(quantity_delta, m_Specialty);
392 }
393
394 if( !ingredient.IsMagazine() )
395 {
396 ItemBase obj = ingredient;
397 bool isDestroyed = obj.AddQuantity(quantity_delta, true);
398 if( isDestroyed )
399 {
400 //if (obj) m_IngredientsToBeDeleted.Insert(obj);
401 continue;
402 }
403 }
404 else
405 {
406 Magazine mag = Magazine.Cast(ingredient);
407 int newQuantity = mag.GetAmmoCount() + quantity_delta;
408 if( newQuantity <= 0 )
409 {
410 if(mag) m_IngredientsToBeDeleted.Insert(mag);
411 continue;
412 }
413 else
414 {
415 mag.ServerSetAmmoCount( newQuantity );
416 }
417 }
418 }
419 }
420 }
421 }
bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]
Definition: recipebase.c:37
bool m_IngredientUseSoftSkills[MAX_NUMBER_OF_INGREDIENTS]
Definition: recipebase.c:33
float m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS]
Definition: recipebase.c:34
float m_Specialty
Definition: recipebase.c:22
float m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS]
Definition: recipebase.c:36
float m_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS]
Definition: recipebase.c:35
ref array< ItemBase > m_IngredientsToBeDeleted
Definition: recipebase.c:16

References m_IngredientAddHealth, m_IngredientAddQuantity, m_IngredientDestroy, m_IngredientSetHealth, m_IngredientsToBeDeleted, m_IngredientUseSoftSkills, m_Specialty, and MAX_NUMBER_OF_INGREDIENTS.

Referenced by PerformRecipe().

◆ ApplyModificationsResults()

void RecipeBase::ApplyModificationsResults ( ItemBase  sorted[],
array< ItemBase results,
ItemBase  result,
PlayerBase  player 
)
inlineprivate

Definition at line 234 of file recipebase.c.

235 {
236 float all_ingredients_health = 0;//this is used later in results
237 float all_ingredients_health01 = 0;//combined damage % of ingredients
238 int value_delta;
239 for(int i = 0; i < MAX_NUMBER_OF_INGREDIENTS; i++)
240 {
241 ItemBase ingrd = ItemBase.Cast(sorted[i]);
242 all_ingredients_health += ingrd.GetHealth("", "");//accumulate health of all ingredients, used in results
243 all_ingredients_health01 += ingrd.GetHealth01("", "");
244 }
245 //------------------- results ----------------------
246 for(i = 0; i < m_NumberOfResults; i++)
247 {
248 ItemBase res = results.Get(i);
249 if(!res)
250 {
251 continue;
252 }
253
254 bool use_soft_skills = m_ResultUseSoftSkills[i];
255
256 if( res.IsItemBase() )
257 {
258 value_delta = m_ResultSetQuantity[i];
259
260 ItemBase resIb = ItemBase.Cast(res);
261
262 if( use_soft_skills )
263 {
264 value_delta = player.GetSoftSkillsManager().AddSpecialtyBonus(value_delta, m_Specialty);
265 }
266
267 if( !resIb.IsMagazine() )//is not a magazine
268 {
269 if( m_ResultSetFullQuantity[i] == 1 )//<------m_ResultSetFullQuantity
270 {
271 resIb.SetQuantityMax();
272 }
273 else if( value_delta != -1 )//<------m_ResultSetQuantity
274 {
275 resIb.SetQuantity( value_delta );
276 }
277 }
278 else//is magazine
279 {
280 Magazine mgzn = Magazine.Cast(resIb);
281 if( m_ResultSetFullQuantity[i] == 1 )//<------m_ResultSetFullQuantity
282 {
283 mgzn.ServerSetAmmoMax();
284 }
285 else if( value_delta != -1 )//<------m_ResultSetQuantity
286 {
287 mgzn.ServerSetAmmoCount( value_delta );
288 }
289 }
290 }
291 if( m_ResultSetHealth[i] != -1 )//<------m_ResultSetHealth
292 {
293 value_delta = m_ResultSetHealth[i];
294 if( use_soft_skills )
295 {
296 value_delta = player.GetSoftSkillsManager().AddSpecialtyBonus(value_delta, m_Specialty);
297 }
298 res.SetHealth("","",value_delta);
299 }
300 if( m_ResultInheritsHealth[i] != -1 )//<------m_ResultInheritsHealth
301 {
302 if( m_ResultInheritsHealth[i] >= 0 )
303 {
304 int ing_number = m_ResultInheritsHealth[i];
305 ItemBase ing = sorted[ing_number];
306
307 if( ing )
308 {
309 //float ing_health = ing.GetHealth("","");
310 float ing_health01 = ing.GetHealth01("","");
311 res.SetHealth("", "", ing_health01 * res.GetMaxHealth("",""));
312 Debug.Log("Inheriting health from ingredient:"+m_ResultInheritsHealth[i].ToString(),"recipes");
313 }
314 }
315 else if( m_ResultInheritsHealth[i] == -2 )
316 {
317 //float average_health = all_ingredients_health / MAX_NUMBER_OF_INGREDIENTS;
318 float average_health01 = all_ingredients_health01 / MAX_NUMBER_OF_INGREDIENTS;
319 res.SetHealth("", "", average_health01 * res.GetMaxHealth("",""));
320 }
321 }
322
323 if( m_ResultReplacesIngredient[i] != -1 )//<------ResultReplacesIngredient
324 {
325 if( m_ResultReplacesIngredient[i] > -1 )
326 {
327 int ing_num = m_ResultReplacesIngredient[i];
328 ItemBase ingr = sorted[ing_num];
329
330 if( ingr )
331 {
332 MiscGameplayFunctions.TransferItemProperties(ingr, res);
333 MiscGameplayFunctions.TransferInventory(ingr, res, player);
334 }
335 }
336 }
337 }
338 }
Definition: debug.c:14
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Definition: debug.c:130
float m_ResultSetHealth[MAXIMUM_RESULTS]
Definition: recipebase.c:42
float m_ResultSetQuantity[MAXIMUM_RESULTS]
Definition: recipebase.c:41
bool m_ResultSetFullQuantity[MAXIMUM_RESULTS]
Definition: recipebase.c:40
bool m_ResultUseSoftSkills[MAXIMUM_RESULTS]
Definition: recipebase.c:48
int m_ResultReplacesIngredient[MAXIMUM_RESULTS]
Definition: recipebase.c:47
int m_ResultInheritsHealth[MAXIMUM_RESULTS]
Definition: recipebase.c:45
proto string ToString()

References Debug::Log(), m_NumberOfResults, m_ResultInheritsHealth, m_ResultReplacesIngredient, m_ResultSetFullQuantity, m_ResultSetHealth, m_ResultSetQuantity, m_ResultUseSoftSkills, m_Specialty, MAX_NUMBER_OF_INGREDIENTS, and ToString().

Referenced by PerformRecipe().

◆ ApplySoftSkillsSpecialty()

void RecipeBase::ApplySoftSkillsSpecialty ( PlayerBase  player)
inlineprivate

Definition at line 553 of file recipebase.c.

554 {
555 player.GetSoftSkillsManager().AddSpecialty(m_Specialty);
556 }

References m_Specialty.

Referenced by PerformRecipe().

◆ CanDo() [1/196]

bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 558 of file recipebase.c.

559 {
560 //Debug.Log("Called Can Do on a recipe id:" + m_ID.ToString(),"recipes");
561 for ( int i = 0; i < MAX_NUMBER_OF_INGREDIENTS; i++)
562 {
563 if (ingredients[i].GetInventory() && ingredients[i].GetInventory().AttachmentCount() > 0)
564 return false;
565 }
566
567 return true;
568 }
proto native int AttachmentCount()
Returns count of attachments attached to this item.

References AttachmentCount(), and MAX_NUMBER_OF_INGREDIENTS.

Referenced by CheckRecipe().

◆ CanDo() [2/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file attachholster.c.

59 {
60 ItemBase ingredient1 = ingredients[0];
61 ItemBase ingredient2 = ingredients[1];
62
63 if( ingredient1.IsEmpty() && ingredient2.IsEmpty() )
64 {
65 return true;
66 }
67 else
68 {
69 return false;
70 }
71 }

◆ CanDo() [3/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file attachholsterpouch.c.

59 {
60 ItemBase ingredient1 = ingredients[0];
61 ItemBase ingredient2 = ingredients[1];
62
63 if( ingredient1.IsEmpty() && ingredient2.IsEmpty() )
64 {
65 return true;
66 }
67 else
68 {
69 return false;
70 }
71 }

◆ CanDo() [4/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file attachpouch.c.

59 {
60 ItemBase ingredient1 = ingredients[0];
61 ItemBase ingredient2 = ingredients[1];
62
63 if( ingredient1.IsEmpty() && ingredient2.IsEmpty() )
64 {
65 return true;
66 }
67 else
68 {
69 return false;
70 }
71 }

◆ CanDo() [5/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file attachpouchesholster.c.

59 {
60 ItemBase ingredient1 = ingredients[0];
61 ItemBase ingredient2 = ingredients[1];
62
63 if( ingredient1.IsEmpty() && ingredient2.IsEmpty() )
64 {
65 return true;
66 }
67 else
68 {
69 return false;
70 }
71 }

◆ CanDo() [6/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file bloodtest.c.

61 {
62 return true;
63 }

◆ CanDo() [7/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 64 of file cleanrags.c.

65 {
66 ItemBase rags;
67 Class.CastTo(rags, ingredients[0]);
68 ItemBase container;
69 Class.CastTo(container, ingredients[1]);
70
71 if ( container.GetLiquidType() == LIQUID_WATER && container.GetQuantity() > 0 && rags.GetHealthLevel() > 1)
72 {
73 return true;
74 }
75 else
76 {
77 return false;
78 }
79 }
Super root of all classes in Enforce script.
Definition: enscript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
const int LIQUID_WATER
Definition: constants.c:485

References Class::CastTo(), and LIQUID_WATER.

◆ CanDo() [8/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 63 of file cleanweapon.c.

64 {
65 PluginRepairing module_repairing;
66 Class.CastTo(module_repairing, GetPlugin(PluginRepairing));
67 ItemBase ingredient1;
68 Class.CastTo(ingredient1, ingredients[0]);
69 ItemBase ingredient2;
70 Class.CastTo(ingredient2, ingredients[1]);
71 return module_repairing.CanRepair(ingredient1,ingredient2);
72 }
PluginBase GetPlugin(typename plugin_type)

References Class::CastTo(), and GetPlugin().

◆ CanDo() [9/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 102 of file craftarmbandflag.c.

103 {
104 return ingredients[0].IsEmpty();
105 }

◆ CanDo() [10/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 56 of file craftarmbandrag.c.

57 {
58 return true;
59 }

◆ CanDo() [11/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 123 of file craftarmbandraincoat.c.

124 {
125 return ingredients[0].IsEmpty();
126 }

◆ CanDo() [12/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 57 of file craftarrow.c.

58 {
59 return true;
60 }

◆ CanDo() [13/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftarrowbone.c.

59 {
60 return true;
61 }

◆ CanDo() [14/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftbait.c.

59 {
60 return true;
61 }

◆ CanDo() [15/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 55 of file craftbaseballbatnailed.c.

56 {
57 return true;
58 }

◆ CanDo() [16/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftbloodbagiv.c.

59 {
60 return true;
61 }

◆ CanDo() [17/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftbonebait.c.

59 {
60 return true;
61 }

◆ CanDo() [18/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 84 of file craftbonehook.c.

85 {
86 return true;
87 }

◆ CanDo() [19/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file craftboneknife.c.

60 {
61 return true;
62 }

◆ CanDo() [20/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file craftbow.c.

60 {
61 ItemBase ingredient2 = ingredients[1];
62
63 if( ingredient2.IsEmpty() )
64 {
65 return true;
66 }
67 else
68 {
69 return false;
70 }
71 }

◆ CanDo() [21/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 84 of file craftburlapstrips.c.

85 {
86 return true;
87 }

◆ CanDo() [22/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftcamonetshelter.c.

59 {
60 ItemBase ingredient2 = ingredients[1];
61
62 if( ingredient2.IsEmpty() )
63 {
64 return true;
65 }
66 else
67 {
68 return false;
69 }
70 }

◆ CanDo() [23/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file craftcookingstand.c.

61 {
62 if(ingredients[1].IsEmpty())
63 {
64 return true;
65 }
66
67 return false;
68 }
override bool IsEmpty()

References IsEmpty().

◆ CanDo() [24/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file craftcourierbag.c.

60 {
61 return true;
62 }

◆ CanDo() [25/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file craftfencekit.c.

61 {
62 if ( ingredients[0].GetInventory().IsAttachment() )
63 return false;
64 if ( ingredients[1].GetInventory().IsAttachment() )
65 return false;
66 return true;
67 }
bool IsAttachment()
Returns true if this Inventory owner is an attachment of something.
Definition: inventory.c:352

References IsAttachment().

◆ CanDo() [26/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 73 of file craftfireplace.c.

74 {
75 ItemBase ingredient1 = ingredients[0];
76 ItemBase ingredient2 = ingredients[1];
77
78 if ( ingredient1.Type() == ingredient2.Type() || ingredient1.GetInventory().GetSlotId(0) == ingredient2.GetInventory().GetSlotId(0) )
79 {
80 return false;
81 }
82
83 return true;
84 }

◆ CanDo() [27/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file craftfishingrod.c.

61 {
62 ItemBase ingredient2 = ingredients[1];
63
64 if( ingredient2.IsEmpty() )
65 {
66 return true;
67 }
68 else
69 {
70 return false;
71 }
72 }

◆ CanDo() [28/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftfishnettrap.c.

59 {
60 return true;
61 }

◆ CanDo() [29/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftgasmask_filter_improvised.c.

59 {
60 return true;
61 }

◆ CanDo() [30/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftghillieattachment.c.

59 {
60 return true;
61 }

◆ CanDo() [31/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftghilliebushrag.c.

59 {
60 return true;
61 }

◆ CanDo() [32/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftghilliehood.c.

59 {
60 return true;
61 }

◆ CanDo() [33/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftghilliesuit.c.

59 {
60 return true;
61 }

◆ CanDo() [34/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftghillietop.c.

59 {
60 return true;
61 }

◆ CanDo() [35/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftgorkahelmetcomplete.c.

59 {
60 return true;
61 }

◆ CanDo() [36/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 80 of file craftgutsrope.c.

81 {
82 return true;
83 }

◆ CanDo() [37/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file crafthanddrillkit.c.

61 {
62 return true;
63 }

◆ CanDo() [38/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftimprovisedbag.c.

59 {
60 if (ingredients[1].IsEmpty())
61 {
62 return true;
63 }
64 return false;
65 }

References IsEmpty().

◆ CanDo() [39/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file craftimprovisedexplosive.c.

60 {
61 return ingredients[0].IsEmpty();
62 }

◆ CanDo() [40/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftimprovisedleatherbag.c.

59 {
60 if (ingredients[1].IsEmpty())
61 {
62 return true;
63 }
64 return false;
65 }

References IsEmpty().

◆ CanDo() [41/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file craftleathercourierbag.c.

60 {
61 return true;
62 }

◆ CanDo() [42/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 56 of file craftleathersack.c.

57 {
58 return true;
59 }

◆ CanDo() [43/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file craftlongtorch.c.

60 {
61 return super.CanDo(ingredients, player);
62 }

◆ CanDo() [44/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file craftrabbitsnare.c.

60 {
61 //turned off for beta
62 return true;
63 }

◆ CanDo() [45/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 88 of file craftrag.c.

89 {
90 ItemBase ingredient2 = ingredients[1];
91 if( ingredient2.ConfigGetFloat("ragQuantity") > 0 && ingredient2.IsEmpty())
92 {
93 return true;
94 }
95 else
96 {
97 return false;
98 }
99 }

◆ CanDo() [46/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftragrope.c.

59 {
60 return true;
61 }

◆ CanDo() [47/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftsalinebagiv.c.

59 {
60 return true;
61 }

◆ CanDo() [48/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file craftshelterkit.c.

60 {
61 if ( ingredients[0].GetInventory().IsAttachment() )
62 return false;
63 if ( ingredients[1].GetInventory().IsAttachment() )
64 return false;
65 return true;
66 }

References IsAttachment().

◆ CanDo() [49/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 84 of file craftsmallfishtrap.c.

85 {
86 return true;
87 }

◆ CanDo() [50/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file craftspearbone.c.

60 {
61 ItemBase stick = ingredients[1];
62
63 if(stick.GetInventory().AttachmentCount() == 0)
64 {
65 return true;
66 }
67 return false;
68 }

◆ CanDo() [51/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file craftspearstone.c.

60 {
61 ItemBase stick = ingredients[1];
62
63 if(stick.GetInventory().AttachmentCount() == 0)
64 {
65 return true;
66 }
67 return false;
68 }

◆ CanDo() [52/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 61 of file craftsplint.c.

62 {
63 ItemBase ingredient1 = ingredients[0];
64 if (ingredient1.Type() == BandageDressing)
65 {
66 if (ingredient1.GetQuantity() == ingredient1.GetQuantityMax())
67 {
68 return true;
69 }
70 return false;
71 }
72
73 if (ingredient1.Type() == Rag)
74 {
75 if (ingredient1.GetQuantity() >= 4)
76 return true;
77
78 return false;
79 }
80
81 if (ingredient1.Type() == DuctTape)
82 {
83 if (ingredient1.GetQuantity() >= (ingredient1.GetQuantityMax()/2))
84 return true;
85
86 return false;
87 }
88
89 return true;
90 }

◆ CanDo() [53/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 61 of file craftstoneknife.c.

62 {
63 return true;
64 }

◆ CanDo() [54/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftsuppressor.c.

59 {
60 return true;
61 }

◆ CanDo() [55/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 61 of file crafttannedleather.c.

62 {
63
64 //return true;
65 Pelt_Base ingredient1 = Pelt_Base.Cast(ingredients[0]);
66 ItemBase ingredient2 = ingredients[1]; //The garden lime
67
68 //Evaluate the amount of Lime required to craft leather from Pelt (percentage based)
69 float yieldQuantity = ingredient1.ConfigGetFloat("leatherYield");
70 float qtyModifier = (4 - ingredient1.GetHealthLevel(""))/4; // Normalize the health level so Pristine is 1 and Ruined is 0
71 yieldQuantity = yieldQuantity * qtyModifier;
72
73 float m_NeededQuantity = (ingredient2.GetQuantityMax() * m_PercentageUsed) * yieldQuantity;
74 if( ingredient1.ConfigGetFloat("leatherYield") >= 0 && ingredient2.GetQuantity() >= m_NeededQuantity)
75 {
76 return true;
77 }
78 else
79 {
80 return false;
81 }
82
83 }
float m_PercentageUsed
class Pelt_Base extends ItemBase Pelt_Base

References m_PercentageUsed, and Pelt_Base.

◆ CanDo() [56/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file craftterritoryflagkit.c.

60 {
61 /*int slot_id_junk;
62 string slot_string;
63 if ( ingredients[0].GetInventory().GetCurrentAttachmentSlotInfo(slot_id_junk,slot_string) )
64 {
65 return false;
66 }
67 if ( ingredients[1].GetInventory().GetCurrentAttachmentSlotInfo(slot_id_junk,slot_string) )
68 {
69 return false;
70 }*/
71 if ( ingredients[0].GetInventory().IsAttachment() )
72 return false;
73 if ( ingredients[1].GetInventory().IsAttachment() )
74 return false;
75
76 return true;
77 }

References IsAttachment().

◆ CanDo() [57/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file crafttorch.c.

60 {
61 return true;
62 }

◆ CanDo() [58/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file crafttripwire.c.

59 {
60 return true;
61 }

◆ CanDo() [59/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file crafttruck01doublewheel.c.

59 {
60 Truck_01_Wheel ingredient1 = Truck_01_Wheel.Cast(ingredients[0]);
61 Truck_01_Wheel ingredient2 = Truck_01_Wheel.Cast(ingredients[1]);
62
63 if (!ingredient1 || !ingredient2)
64 return false;
65
66 if ( !ingredient1.GetHierarchyParent() || ingredient1.GetHierarchyParent() == ingredient1.GetHierarchyRootPlayer() )
67 {
68 if ( !ingredient2.GetHierarchyParent() || ingredient2.GetHierarchyParent() == ingredient2.GetHierarchyRootPlayer() )
69 return true;
70 else
71 return false;
72 }
73 else
74 {
75 return false;
76 }
77 }

◆ CanDo() [60/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file craftwatchtowerkit.c.

60 {
61 if ( ingredients[0].GetInventory().IsAttachment() )
62 return false;
63 if ( ingredients[1].GetInventory().IsAttachment() )
64 return false;
65 return true;
66 }

References IsAttachment().

◆ CanDo() [61/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftwoodencrate.c.

59 {
60 return true;
61 }

◆ CanDo() [62/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file craftwoodenplank.c.

59 {
60 return true;
61 }

◆ CanDo() [63/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 8 of file cutoutseeds.c.

9 {
10 return true;
11 }

◆ CanDo() [64/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 83 of file decraftarmband.c.

84 {
85 return true;
86 }

◆ CanDo() [65/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 87 of file decraftbow.c.

88 {
89 return true;
90 }

◆ CanDo() [66/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 99 of file decraftcamonetshelter.c.

100 {
101 return true;
102 }

◆ CanDo() [67/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 107 of file decraftcarriercomplete.c.

108 {
109 ItemBase ingredient1 = ingredients[0];
110
111 if( ingredient1.IsEmpty())
112 {
113 return true;
114 }
115 else
116 {
117 return false;
118 }
119 }

◆ CanDo() [68/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 95 of file decraftcarrierholster.c.

96 {
97 ItemBase ingredient1 = ingredients[0];
98
99 if( ingredient1.IsEmpty())
100 {
101 return true;
102 }
103 else
104 {
105 return false;
106 }
107 }

◆ CanDo() [69/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 95 of file decraftcarrierpouches.c.

96 {
97 ItemBase ingredient1 = ingredients[0];
98
99 if( ingredient1.IsEmpty())
100 {
101 return true;
102 }
103 else
104 {
105 return false;
106 }
107 }

◆ CanDo() [70/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 87 of file decraftcookingstand.c.

88 {
89 return true;
90 }

◆ CanDo() [71/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 98 of file decraftcourierbag.c.

99 {
100 return ingredients[0].IsEmpty();
101 }

◆ CanDo() [72/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file decraftdetonator.c.

59 {
60 return true;
61 }

◆ CanDo() [73/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 97 of file decraftfishingrod.c.

98 {
99 return true;
100 }

◆ CanDo() [74/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 96 of file decraftfishnettrap.c.

97 {
98 // We don't allow dismantling if there is an item attached
99 return ingredients[0].GetInventory().AttachmentCount() == 0;
100 }

◆ CanDo() [75/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 100 of file decraftghillieattachment.c.

101 {
102 return true;
103 }

◆ CanDo() [76/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 101 of file decraftghilliebushrag.c.

102 {
103 return true;
104 }

◆ CanDo() [77/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 101 of file decraftghilliehood.c.

102 {
103 return true;
104 }

◆ CanDo() [78/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 100 of file decraftghilliesuit.c.

101 {
102 return true;
103 }

◆ CanDo() [79/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 101 of file decraftghillietop.c.

102 {
103 return true;
104 }

◆ CanDo() [80/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 87 of file decrafthanddrillkit.c.

88 {
89 return true;
90 }

◆ CanDo() [81/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 98 of file decraftimprovisedbag.c.

99 {
100 return ingredients[0].IsEmpty();
101 }

◆ CanDo() [82/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 98 of file decraftimprovisedleatherbag.c.

99 {
100 return ingredients[0].IsEmpty();
101 }

◆ CanDo() [83/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 98 of file decraftleathercourierbag.c.

99 {
100 return ingredients[0].IsEmpty();
101 }

◆ CanDo() [84/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 83 of file decraftleathersack.c.

84 {
85 return ingredients[0].IsEmpty();
86 }

◆ CanDo() [85/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 87 of file decraftsnaretrap.c.

88 {
89 return ingredients[0].GetInventory().AttachmentCount() == 0;
90 }

◆ CanDo() [86/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 87 of file decraftspear.c.

88 {
89 return true;
90 }

◆ CanDo() [87/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 87 of file decraftsplint.c.

88 {
89 return true;
90 }

◆ CanDo() [88/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 87 of file decrafttripwire.c.

88 {
89 // We don't allow dismantling if there is an item attached
90 return ingredients[0].GetInventory().AttachmentCount() == 0;
91 }

◆ CanDo() [89/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 74 of file decrafttruck01doublewheel.c.

75 {
76 ItemBase ingredient1 = ingredients[0];
77
78 if ( !ingredient1.GetHierarchyParent() )
79 return true;
80 else
81 return false;
82 }

◆ CanDo() [90/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 74 of file decraftwoodencrate.c.

75 {
76 ItemBase crate;
77 Class.CastTo(crate, ingredients[0]);
78
79 if ( crate.GetInventory().CountInventory() > 1 )
80 return false;
81
82 return true;
83 }

References Class::CastTo().

◆ CanDo() [91/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file disinfectitem.c.

61 {
62 ItemBase ingredient1 = ingredients[0];
63 ItemBase ingredient2 = ingredients[1];
64
65
66 if ( !ingredient2.CanBeDisinfected() )
67 return false;
68
69 if ( ingredient1.GetQuantity() < ingredient1.GetDisinfectQuantity() )
70 {
71 return false;
72 }
73
74
75 int liquid_type = ingredient1.GetLiquidType();
76 return (liquid_type & LIQUID_DISINFECTANT);
77 }
override bool CanBeDisinfected()
const int LIQUID_DISINFECTANT
Definition: constants.c:491

References ItemBase::CanBeDisinfected(), and LIQUID_DISINFECTANT.

◆ CanDo() [92/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 70 of file drainliquid.c.

71 {
72 ItemBase ingredient1;
73 Class.CastTo(ingredient1, ingredients[0]);
74 ItemBase ingredient2;
75 Class.CastTo(ingredient2, ingredients[1]);
76
77 ItemBase source = NULL;
78 ItemBase target = NULL;
79
80 ItemBase entity_in_hands = ItemBase.Cast(player.GetHumanInventory().GetEntityInHands());
81
82 //condition always true for any bottle, another recipe needed for pouring TO handheld bottle
83 if( entity_in_hands == ingredient1 )
84 {
85 return Liquid.CanTransfer(ingredient2,ingredient1);
86 }
87 else
88 {
89 return Liquid.CanTransfer(ingredient1,ingredient2);
90 }
91 }
Definition: liquid.c:2
static bool CanTransfer(ItemBase source_ent, ItemBase target_ent)
Definition: liquid.c:84

References Liquid::CanTransfer(), and Class::CastTo().

◆ CanDo() [93/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 66 of file extinguishtorch.c.

67 {
68 FlammableBase target = FlammableBase.Cast(ingredients[0]);
69 ItemBase container;
70 Class.CastTo(container, ingredients[1]);
71
72 if ( container.GetLiquidType() & (GROUP_LIQUID_BLOOD | LIQUID_WATER | LIQUID_RIVERWATER | LIQUID_BEER) )
73 {
74 return target.IsIgnited();
75 }
76 return false;
77 }
override bool IsIgnited()
Definition: torch.c:135
const int GROUP_LIQUID_BLOOD
Definition: constants.c:495
const int LIQUID_BEER
Definition: constants.c:488
const int LIQUID_RIVERWATER
Definition: constants.c:486

References Class::CastTo(), GROUP_LIQUID_BLOOD, FlammableBase::IsIgnited(), LIQUID_BEER, LIQUID_RIVERWATER, and LIQUID_WATER.

◆ CanDo() [94/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file fillgasmask_filter.c.

61 {
62 ItemBase filter = ingredients[1];
63
64 //Do not fill alread full filters
65 if(filter.GetQuantity() >= filter.GetQuantityMax())
66 {
67 return false;
68 }
69
70 // Check if not attached to a gas mask
72 filter.GetInventory().GetCurrentInventoryLocation(il);
73 EntityAI inv = il.GetParent();
74
75 if(inv != null)
76 {
77 if (inv.GetType() == "GP5GasMask" || inv.GetType() == "AirborneMask")
78 {
79 return false;
80 }
81 }
82
83 return true;
84 }
InventoryLocation.
proto native EntityAI GetParent()
returns parent of current inventory location

References InventoryLocation::GetParent().

◆ CanDo() [95/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file fillsyringe.c.

59 {
60 return true;
61 }

◆ CanDo() [96/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 65 of file fuelchainsaw.c.

66 {
67 ItemBase container;
68 Class.CastTo(container, ingredients[1]);
69 int liquid_type = container.GetLiquidType();
70 return (liquid_type & LIQUID_GASOLINE);
71 }
const int LIQUID_GASOLINE
Definition: constants.c:489

References Class::CastTo(), and LIQUID_GASOLINE.

◆ CanDo() [97/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 81 of file loadmagazine.c.

82 {
83 if( ingredients[0].IsKindOf("Ammunition_Base") && ingredients[1].IsKindOf("Ammunition_Base") )
84 {
85 return false;
86 }
87 else return true;
88
89 }
bool IsKindOf(string type)
Check config class name of the object.
Definition: object.c:378

References IsKindOf().

◆ CanDo() [98/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 105 of file opencan.c.

106 {
107 if ( player.IsPlacingLocal() )
108 return false;
109
110 return true;
111 }

◆ CanDo() [99/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file paintak101.c.

60 {
61 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
62 }
static bool CanPaintItem(ItemBase item_tool, ItemBase item_target)
Definition: paintitem.c:13

References PaintItem::CanPaintItem().

◆ CanDo() [100/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintak10130mag.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [101/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file paintak74.c.

59 {
60 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
61 }

References PaintItem::CanPaintItem().

◆ CanDo() [102/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintak7430mag.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [103/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintak74hndgrdblack.c.

61 {
62 return true;
63 }

◆ CanDo() [104/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintak74hndgrdcamo.c.

61 {
62 return true;
63 }

◆ CanDo() [105/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintak74woodbttstckblack.c.

61 {
62 return true;
63 }

◆ CanDo() [106/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintak74woodbttstckcamo.c.

61 {
62 return true;
63 }

◆ CanDo() [107/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintakfoldingbttstck.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [108/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintakmdrummag.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [109/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintakmpalm30mag.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [110/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintakplasticbttstck.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [111/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintakrailhndgrd.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [112/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintaks74u.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [113/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintaks74ubttstck.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [114/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintakwoodbttstckblack.c.

61 {
62 return true;
63 }

◆ CanDo() [115/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintakwoodbttstckcamo.c.

61 {
62 return true;
63 }

◆ CanDo() [116/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintb95.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [117/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintballistichelmet.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [118/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintcmag10.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [119/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintcmag20.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [120/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintcmag30.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [121/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintcmag40.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [122/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintcz527.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [123/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintcz527camoblack.c.

61 {
62 return true;
63 }

◆ CanDo() [124/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintcz527camogreen.c.

61 {
62 return true;
63 }

◆ CanDo() [125/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintdarkmotohelmet.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [126/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintfirefighteraxe.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [127/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintghillieattblack.c.

61 {
62 return true;
63 }

◆ CanDo() [128/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file paintghillieattgreen.c.

59 {
60 return true;
61 }

◆ CanDo() [129/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintghillieattgreenmossy.c.

61 {
62 return true;
63 }

◆ CanDo() [130/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintghilliebushragblack.c.

61 {
62 return true;
63 }

◆ CanDo() [131/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file paintghilliebushraggreen.c.

59 {
60 return true;
61 }

◆ CanDo() [132/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintghilliebushraggreenmossy.c.

61 {
62 return true;
63 }

◆ CanDo() [133/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file paintghilliehoodblack.c.

59 {
60 return true;
61 }

◆ CanDo() [134/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintghilliehoodgreen.c.

61 {
62 return true;
63 }

◆ CanDo() [135/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintghilliehoodgreenmossy.c.

61 {
62 return true;
63 }

◆ CanDo() [136/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file paintghilliesuitblack.c.

59 {
60 return true;
61 }

◆ CanDo() [137/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintghilliesuitgreen.c.

61 {
62 return true;
63 }

◆ CanDo() [138/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintghilliesuitgreenmossy.c.

61 {
62 return true;
63 }

◆ CanDo() [139/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintghillietopblack.c.

61 {
62 return true;
63 }

◆ CanDo() [140/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintghillietopgreen.c.

61 {
62 return true;
63 }

◆ CanDo() [141/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintghillietopgreenmossy.c.

61 {
62 return true;
63 }

◆ CanDo() [142/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintgorkahelmet.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [143/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintgorkahelmetcomplete.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [144/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintm4a1.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [145/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintm4cqbbttstck.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [146/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintm4mpbttstck.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [147/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintm4mphndgrd.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [148/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintm4oebttstck.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [149/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintm4plastichndgrd.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [150/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintm4rishndgrd.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [151/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 63 of file paintmosin.c.

64 {
65 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
66 }

References PaintItem::CanPaintItem().

◆ CanDo() [152/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintmosincamoblack.c.

61 {
62 return true;
63 }

◆ CanDo() [153/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintmosincamogreen.c.

61 {
62 return true;
63 }

◆ CanDo() [154/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintmotohelmet.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [155/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintruger1022.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [156/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintsawedoffmosin.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [157/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintsawedoffmosincamoblack.c.

61 {
62 return true;
63 }

◆ CanDo() [158/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintsawedoffmosincamogreen.c.

61 {
62 return true;
63 }

◆ CanDo() [159/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintsks.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [160/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file paintzsh3pilothelmet.c.

61 {
62 return PaintItem.CanPaintItem(ingredients[0], ingredients[1]);
63 }

References PaintItem::CanPaintItem().

◆ CanDo() [161/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 63 of file patchitem.c.

64 {
65 PluginRepairing module_repairing;
66 Class.CastTo(module_repairing, GetPlugin(PluginRepairing));
67 ItemBase ingredient1;
68 Class.CastTo(ingredient1, ingredients[0]);
69 ItemBase ingredient2;
70 Class.CastTo(ingredient2, ingredients[1]);
71 return module_repairing.CanRepair(ingredient1,ingredient2) && ingredient2.CanBeRepairedByCrafting();
72 }
override bool CanBeRepairedByCrafting()
Definition: tentbase.c:86

References ItemBase::CanBeRepairedByCrafting(), Class::CastTo(), and GetPlugin().

◆ CanDo() [162/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 81 of file peelpotato.c.

82 {
83 return true;
84 }

◆ CanDo() [163/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 77 of file pokeholesbarrel.c.

78 {
79 //HACK: until server-> client syncing of "LocalDropEntity" gets sortet out
80 ItemBase parent = ingredients[0];
81 if (parent.IsEmpty())
82 return true;
83 return false;
84 //return true;
85 }

◆ CanDo() [164/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 70 of file pourliquid.c.

71 {
72 ItemBase ingredient1;
73 Class.CastTo(ingredient1, ingredients[0]);
74 ItemBase ingredient2;
75 Class.CastTo(ingredient2, ingredients[1]);
76
77 ItemBase source = NULL;
78 ItemBase target = NULL;
79
80 ItemBase entity_in_hands = ItemBase.Cast(player.GetHumanInventory().GetEntityInHands());
81
82 //condition always true for any bottle, another recipe needed for pouring TO handheld bottle
83 if( entity_in_hands == ingredient1 )
84 {
85 return Liquid.CanTransfer(ingredient1,ingredient2);
86 }
87 else
88 {
89 return Liquid.CanTransfer(ingredient2,ingredient1);
90 }
91 }

References Liquid::CanTransfer(), and Class::CastTo().

◆ CanDo() [165/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 106 of file preparechicken.c.

107 {
108 return true;
109 }

◆ CanDo() [166/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 8 of file preparefish.c.

9 {
10 return true;
11 }

◆ CanDo() [167/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 118 of file preparerabbit.c.

119 {
120 return true;
121 }

◆ CanDo() [168/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 65 of file purifywater.c.

66 {
67 return true;
68 }

◆ CanDo() [169/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 60 of file refueltorch.c.

61 {
62 Rag rag = Rag.Cast(ingredients[0]);
63 Torch torch = Torch.Cast(ingredients[1]);
64
65 if (!rag || !torch)
66 return false;
67
68 Rag rag_on_torch = Rag.Cast( torch.GetInventory().FindAttachment( rag.GetInventory().GetSlotId(0) ) );
69
70 if (rag_on_torch) // Check if torch already has rag with 100% quantity
71 {
72 if (rag_on_torch.GetQuantity() == rag_on_torch.GetQuantityMax() )
73 {
74 return false;
75 }
76 }
77
78 return true;
79 }

◆ CanDo() [170/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 61 of file repairelectric.c.

62 {
63 PluginRepairing module_repairing;
64 Class.CastTo(module_repairing, GetPlugin(PluginRepairing));
65 ItemBase ingredient1;
66 Class.CastTo(ingredient1, ingredients[0]);
67 ItemBase ingredient2;
68 Class.CastTo(ingredient2, ingredients[1]);
69 return module_repairing.CanRepair(ingredient1,ingredient2);
70 }

References Class::CastTo(), and GetPlugin().

◆ CanDo() [171/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 61 of file repairepoxy.c.

62 {
63 PluginRepairing module_repairing;
64 Class.CastTo(module_repairing, GetPlugin(PluginRepairing));
65 ItemBase ingredient1;
66 Class.CastTo(ingredient1, ingredients[0]);
67 ItemBase ingredient2;
68 Class.CastTo(ingredient2, ingredients[1]);
69 return module_repairing.CanRepair(ingredient1,ingredient2);
70 }

References Class::CastTo(), and GetPlugin().

◆ CanDo() [172/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 61 of file repaireyepatch.c.

62 {
63 ItemBase ingrEP = ingredients[0];
64 ItemBase ingrRag = ingredients[1];
65
66 if(ingrRag.GetHealthLevel() >= ingrEP.GetHealthLevel())
67 return false;
68
69 return true;
70 }

◆ CanDo() [173/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 62 of file repairplanks.c.

63 {
64 ItemBase ingredient1 = ingredients[0];
65
66 if (ingredient1.Type() == WoodenPlank)
67 {
68 if (ingredient1.GetQuantity() >= 4)
69 return true;
70
71 return false;
72 }
73
74 return true;
75 }

◆ CanDo() [174/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 66 of file repairwithrags.c.

67 {
68 return true;
69 }

◆ CanDo() [175/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 63 of file repairwithtape.c.

64 {
65 PluginRepairing module_repairing;
66 Class.CastTo(module_repairing, GetPlugin(PluginRepairing));
67 ItemBase ingredient1;
68 Class.CastTo(ingredient1, ingredients[0]);
69 ItemBase ingredient2;
70 Class.CastTo(ingredient2, ingredients[1]);
71 return module_repairing.CanRepair(ingredient1,ingredient2) && ingredient2.CanBeRepairedByCrafting();
72 }

References ItemBase::CanBeRepairedByCrafting(), Class::CastTo(), and GetPlugin().

◆ CanDo() [176/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 63 of file sawoffb95.c.

64 {
65 return true;
66 }

◆ CanDo() [177/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 63 of file sawofffamas.c.

64 {
65 return true;
66 }

◆ CanDo() [178/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 63 of file sawoffizh18.c.

64 {
65 //check may seem redundandt, but recipe works on "SawedoffIzh18" without it (it should not)
66 ItemBase ingredient1;
67 Class.CastTo(ingredient1, ingredients[0]);
68 if ( ingredient1.GetType() == "SawedoffIzh18" )
69 {
70 return false;
71 }
72 else if ( ingredient1.GetType() == "Izh18" )
73 {
74 return true;
75 }
76 else
77 {
78 return false;
79 }
80 }

References Class::CastTo().

◆ CanDo() [179/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 63 of file sawoffizh18shotgun.c.

64 {
65 //check may seem redundandt, but recipe works on "SawedoffIzh18" without it (it should not)
66 ItemBase ingredient1;
67 Class.CastTo(ingredient1, ingredients[0]);
68 if ( ingredient1.GetType() == "SawedoffIzh18Shotgun" )
69 {
70 return false;
71 }
72 else if ( ingredient1.GetType() == "Izh18Shotgun" )
73 {
74 return true;
75 }
76 else
77 {
78 return false;
79 }
80 }

References Class::CastTo().

◆ CanDo() [180/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 65 of file sawoffmagnum.c.

66 {
67 return true;
68 }

◆ CanDo() [181/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 63 of file sawoffmosin.c.

64 {
65 return true;
66 }

◆ CanDo() [182/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 65 of file sawoffmosinpainted.c.

66 {
67 return true;
68 }

◆ CanDo() [183/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 63 of file sawoffshotgunizh43.c.

64 {
65 return true;
66 }

◆ CanDo() [184/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 87 of file sawwoodenlog.c.

88 {
89 return true;
90 }

◆ CanDo() [185/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 93 of file sharpenbroom.c.

94 {
95 ItemBase broom = ingredients[0];
96
97 if (broom.GetCompEM().IsWorking())
98 {
99 return false;
100 }
101 return true;
102 }

◆ CanDo() [186/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 81 of file sharpenlongstick.c.

82 {
83 return true;
84 }

◆ CanDo() [187/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 61 of file sharpenmelee.c.

62 {
63 PluginRepairing module_repairing;
64 Class.CastTo(module_repairing, GetPlugin(PluginRepairing));
65 ItemBase ingredient1;
66 Class.CastTo(ingredient1, ingredients[0]);
67 ItemBase ingredient2;
68 Class.CastTo(ingredient2, ingredients[1]);
69 return module_repairing.CanRepair(ingredient1,ingredient2);
70 }

References Class::CastTo(), and GetPlugin().

◆ CanDo() [188/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 81 of file sharpenstick.c.

82 {
83 return true;
84 }

◆ CanDo() [189/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 99 of file splitbroom.c.

100 {
101 ItemBase broom = ingredients[0];
102
103
104 if (broom.GetCompEM().IsWorking())
105 {
106 return false;
107 }
108
109 if ( broom.IsEmpty() )
110 {
111 return true;
112 }
113 return false;
114
115 }

◆ CanDo() [190/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 67 of file splitfirewood.c.

68 {
69 return true;
70 }

◆ CanDo() [191/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 87 of file splitlongwoodenstick.c.

88 {
89 ItemBase ingredient1 = ingredients[0];
90
91 if ( ingredient1.IsEmpty() )
92 {
93 return true;
94 }
95 else
96 {
97 return false;
98 }
99 }

◆ CanDo() [192/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 84 of file splitstones.c.

85 {
86 return true;
87 }

◆ CanDo() [193/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 75 of file test.c.

76 {
77 return true;
78 }

◆ CanDo() [194/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 58 of file upgradetorchwithlard.c.

59 {
60 FlammableBase item = Torch.Cast(ingredients[1]);
61 if (item)
62 {
63 return item.CanReceiveUpgrade();
64 }
65 return false;
66 }
bool CanReceiveUpgrade()
Definition: torch.c:421

References FlammableBase::CanReceiveUpgrade().

◆ CanDo() [195/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file upgradetorchwithliquidfuel.c.

60 {
61 ItemBase vessel = ItemBase.Cast(ingredients[0]);
62 FlammableBase item = Torch.Cast(ingredients[1]);
63
64 if (item && vessel && vessel.GetQuantity() > 0 && vessel.IsLiquidContainer()) // Check if torch already has rag and if vessel has liquid in it
65 {
66 if (vessel.GetLiquidType() == LIQUID_GASOLINE || vessel.GetLiquidType() == LIQUID_DIESEL)
67 {
68 return item.CanReceiveUpgrade();
69 }
70 }
71
72 return false;
73 }
const int LIQUID_DIESEL
Definition: constants.c:490

References FlammableBase::CanReceiveUpgrade(), LIQUID_DIESEL, and LIQUID_GASOLINE.

◆ CanDo() [196/196]

override bool RecipeBase::CanDo ( ItemBase  ingredients[],
PlayerBase  player 
)
inlineprivate

Definition at line 61 of file writeletter.c.

62 {
63 //probably should be limited by number/length of strings already present, or worsening condition of the paper in question?
64 return true;
65 }

◆ CheckConditions()

bool RecipeBase::CheckConditions ( ItemBase  sorted[])
inlineprivate

Definition at line 424 of file recipebase.c.

425 {
426 for(int i = 0; i < MAX_NUMBER_OF_INGREDIENTS; i++)
427 {
428 ItemBase ingredient = sorted[i];
429 if( !ingredient.IsMagazine() )
430 {
431 if( ingredient.GetQuantityMax() !=0 && m_MinQuantityIngredient[i] >= 0 && ingredient.GetQuantity() < m_MinQuantityIngredient[i] )
432 {
433 //Debug.Log("Recipe condition check failing1: m_MinQuantityIngredient","recipes");
434 return false;
435 }
436 if( m_MaxQuantityIngredient[i] >= 0 && ingredient.GetQuantity() > m_MaxQuantityIngredient[i] )
437 {
438 //Debug.Log("Recipe condition check failing1: m_MaxQuantityIngredient","recipes");
439 return false;
440 }
441 }
442 else
443 {
444 Magazine mag1 = Magazine.Cast(ingredient);
445 if( m_MinQuantityIngredient[i] >= 0 && mag1.GetAmmoCount() < m_MinQuantityIngredient[i] )
446 {
447 //Debug.Log("Recipe condition check failing1: m_MinQuantityIngredient[0]","recipes");
448 return false;
449 }
450 if( m_MaxQuantityIngredient[i] >= 0 && mag1.GetAmmoCount() > m_MaxQuantityIngredient[i] )
451 {
452 //Debug.Log("Recipe condition check failing1: m_MaxQuantityIngredient[0]","recipes");
453 return false;
454 }
455 }
456 int dmg3 = ingredient.GetHealthLevel();
457 if( m_MinDamageIngredient[i] >= 0 && ingredient.GetHealthLevel() < m_MinDamageIngredient[i] )
458 {
459 int dmg = ingredient.GetHealthLevel();
460 //Debug.Log("Recipe condition check failing1: m_MinDamageIngredient[0]","recipes");
461 return false;
462 }
463 if( m_MaxDamageIngredient[i] >= 0 && ingredient.GetHealthLevel() > m_MaxDamageIngredient[i] )
464 {
465 int dmg2 = ingredient.GetHealthLevel();
466 //Debug.Log("Recipe condition check failing1: m_MaxDamageIngredient[0]","recipes");
467 return false;
468 }
469 }
470 return true;
471 }
float m_MinQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
Definition: recipebase.c:28
float m_MaxQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
Definition: recipebase.c:29
float m_MinDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
Definition: recipebase.c:30
float m_MaxDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
Definition: recipebase.c:31

References m_MaxDamageIngredient, m_MaxQuantityIngredient, m_MinDamageIngredient, m_MinQuantityIngredient, and MAX_NUMBER_OF_INGREDIENTS.

Referenced by CheckRecipe().

◆ CheckIngredientMatch()

bool RecipeBase::CheckIngredientMatch ( ItemBase  item1,
ItemBase  item2 
)
inlineprivate

Definition at line 90 of file recipebase.c.

91 {
92 if( item1 == NULL || item2 == NULL ) return false;
93
94 m_Items[0] = item1;
95 m_Items[1] = item2;
96
97 bool found = false;
98 for(int i = 0; i < MAX_NUMBER_OF_INGREDIENTS; i++)//all ingredients
99 {
100 found = false;
101 array<string> tempArray = m_Ingredients[i];
102 for(int x = 0; x < tempArray.Count(); x++)//particular ingredient array
103 {
104 for(int z = 0; z < MAX_NUMBER_OF_INGREDIENTS; z++)
105 {
106 if( m_Items[z] != NULL )
107 {
108 ItemBase item = m_Items[z];
109 if( tempArray.Get(x) == item.GetType() || GetGame().IsKindOf(item.GetType(),tempArray.Get(x)))
110 {
111 found = true;//we found a match
112 //m_IngredientsSorted.Insert(item);
113 m_IngredientsSorted[i] = item;
114 m_Items[z] = NULL;
115 }
116 }
117 if(found) break;//we found a match, no need to check the remaining ingredients
118 }
119 if(found) break;//we found a match, no need to check this m_Ingredient array
120 }
121 if(!found) return false;// no match within an m_Ingredient array, no reason to continue the search, recipe is invalid
122 }
123 if(found)
124 {
125 return true;
126 }
127 else
128 {
129 return false;
130 }
131 }
ItemBase m_Items[MAX_NUMBER_OF_INGREDIENTS]
Definition: recipebase.c:9
proto native CGame GetGame()
Icon x

References GetGame(), IsKindOf(), m_Ingredients, m_IngredientsSorted, m_Items, MAX_NUMBER_OF_INGREDIENTS, and x.

◆ CheckRecipe()

bool RecipeBase::CheckRecipe ( ItemBase  item1,
ItemBase  item2,
PlayerBase  player 
)
inlineprivate

Definition at line 474 of file recipebase.c.

475 {
476 if( item1 == NULL || item2 == NULL )
477 {
478 Error("recipe invalid, at least one of the ingredients is NULL");
479 return false;
480 }
481
482 ItemBase item_in_hand = player.GetItemInHands();
483
484 if( !IsRecipeAnywhere() && (item1 != item_in_hand && item2 != item_in_hand) )
485 {
486 return false;
487 }
488
489 m_IngredientsSorted[0] = item1;
490 m_IngredientsSorted[1] = item2;
491
493 {
494 return true;
495 }
496 return false;
497 }
bool IsRecipeAnywhere()
Definition: recipebase.c:85
bool CanDo(ItemBase ingredients[], PlayerBase player)
Definition: recipebase.c:558
bool CheckConditions(ItemBase sorted[])
Definition: recipebase.c:424
void Error(string err)
Messagebox with error message.
Definition: endebug.c:90

References CanDo(), CheckConditions(), Error(), IsRecipeAnywhere(), and m_IngredientsSorted.

Referenced by PluginRecipesManagerBase::CheckRecipe(), PluginRecipesManagerBase::GetValidRecipesProper(), and PerformRecipe().

◆ DeleleIngredientsPass()

void RecipeBase::DeleleIngredientsPass ( )
inlineprivate

Definition at line 341 of file recipebase.c.

342 {
343 for(int i = 0; i < m_IngredientsToBeDeleted.Count(); i++)
344 {
345 ItemBase ingredient = m_IngredientsToBeDeleted.Get(i);
346 ingredient.Delete();
347 }
349 }

References m_IngredientsToBeDeleted.

Referenced by PerformRecipe().

◆ Do() [1/197]

void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 570 of file recipebase.c.

571 {
572 //Debug.Log("Called Do on a recipe id:" + m_ID.ToString(),"recipes");
573 }

Referenced by PerformRecipe().

◆ Do() [2/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 73 of file attachholster.c.

74 {
75 Debug.Log("Recipe Do method called","recipes");
76 }

References Debug::Log().

◆ Do() [3/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 73 of file attachholsterpouch.c.

74 {
75 Debug.Log("Recipe Do method called","recipes");
76 }

References Debug::Log().

◆ Do() [4/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 73 of file attachpouch.c.

74 {
75 Debug.Log("Recipe Do method called","recipes");
76 }

References Debug::Log().

◆ Do() [5/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 73 of file attachpouchesholster.c.

74 {
75 Debug.Log("Recipe Do method called","recipes");
76 }

References Debug::Log().

◆ Do() [6/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file bloodtest.c.

66 {
67 ItemBase ingredient2;
68 Class.CastTo(ingredient2, ingredients[1]);
69 string type;
70 bool positive
71 string blood_type_name = BloodTypes.GetBloodTypeName(ingredient2.GetLiquidType(), type, positive);
72 string message = "#blood_type_result " + blood_type_name;
73 PlayerBase pb_Player;
74 Class.CastTo(pb_Player, player);
75 BloodContainerBase blood_container = BloodContainerBase.Cast(ingredient2);
76 blood_container.SetBloodTypeVisible( true );
77 }
static string GetBloodTypeName(int bloodtype, out string type, out bool positive)
Definition: bloodtype.c:89

References Class::CastTo(), and BloodTypes::GetBloodTypeName().

◆ Do() [7/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 81 of file cleanrags.c.

82 {
83 /*
84 this function will clean the rags and consume the appropriate amount of cleaning liquid,
85 if there is insufficient liquid to cover the "repair", the rags will only repair proportionally
86 */
87 //TODO implement SS 2.0 to amount of liquid used
88 ItemBase rags;
89 Class.CastTo(rags, ingredients[0]);
90 ItemBase container;
91 Class.CastTo(container, ingredients[1]);
92
93 float rags_health = rags.GetHealth("","");
94 int rags_quantity = rags.GetQuantity();
95
96 float rags_combined_damage = (100 - rags_health) * rags_quantity;
97
98 int liquid_quantity = container.GetQuantity();
99 int liquid_required = rags_combined_damage * 2;
100
101 float used_ratio = 0;
102 float heal = 0;
103
104 if( liquid_quantity > liquid_required )
105 {
106 container.AddQuantity(-liquid_required);
107 heal = rags_combined_damage / rags_quantity;
108 }
109 else
110 {
111 container.SetQuantity(0);
112 used_ratio = liquid_quantity / liquid_required;
113 heal = (rags_combined_damage / rags_quantity) * used_ratio;
114
115 }
116 heal = Math.Clamp(heal, 0, (70 - rags_health));
117 rags.AddHealth("", "",heal);
118 /*
119 Debug.Log("liquid_quantity: "+ToString(liquid_quantity),"recipes");
120 Debug.Log("used_ratio: "+ToString(used_ratio),"recipes");
121 Debug.Log("rags_combined_damage: "+ToString(rags_combined_damage),"recipes");
122 Debug.Log("liquid_required: "+ToString(liquid_required),"recipes");
123 Debug.Log("healing applied: "+ToString(heal),"recipes");
124 */
125
126 /*
127 PluginTransmissionAgents mta = GetPlugin(PluginTransmissionAgents);
128 mta.RemoveAllAgents(rags);
129 */
130 }
Definition: enmath.c:7
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.

References Class::CastTo(), and Math::Clamp().

◆ Do() [8/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 74 of file cleanweapon.c.

75 {
76 PluginRepairing module_repairing;
77 Class.CastTo(module_repairing, GetPlugin(PluginRepairing));
78 PlayerBase playerPB;
79 Class.CastTo(playerPB, player);
80 ItemBase ingredient1;
81 Class.CastTo(ingredient1, ingredients[0]);
82 ItemBase ingredient2;
83 Class.CastTo(ingredient2, ingredients[1]);
84 module_repairing.Repair(playerPB, ingredient1,ingredient2,m_Specialty);
85 }

References Class::CastTo(), and GetPlugin().

◆ Do() [9/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 107 of file craftarmbandflag.c.

108 {
109
110 }

◆ Do() [10/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 61 of file craftarmbandrag.c.

62 {
63 Debug.Log("Recipe Do method called","recipes");
64 }

References Debug::Log().

◆ Do() [11/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 128 of file craftarmbandraincoat.c.

129 {
130
131 }

◆ Do() [12/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 62 of file craftarrow.c.

63 {
64 Debug.Log("Recipe Do method called","recipes");
65 }

References Debug::Log().

◆ Do() [13/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftarrowbone.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [14/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftbait.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [15/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 56 of file craftbaseballbatbarbed.c.

57 {
58 ItemBase gloves = ItemBase.Cast(player.FindAttachmentBySlotName("Gloves"));
59 if ( gloves && !gloves.IsDamageDestroyed() )
60 return;
61
62 int rand = Math.RandomIntInclusive(0,9);
63 if ( rand == 0 )
64 {
65 rand = Math.RandomIntInclusive(0,1);
66 if ( rand == 0 && !player.GetBleedingManagerServer().AttemptAddBleedingSourceBySelection("LeftForeArmRoll") )
67 {
68 player.GetBleedingManagerServer().AttemptAddBleedingSourceBySelection("RightForeArmRoll");
69 }
70 else if ( rand == 1 && !player.GetBleedingManagerServer().AttemptAddBleedingSourceBySelection("RightForeArmRoll") )
71 {
72 player.GetBleedingManagerServer().AttemptAddBleedingSourceBySelection("LeftForeArmRoll");
73 }
74 }
75 }
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Definition: enmath.c:53

References Math::RandomIntInclusive().

◆ Do() [16/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftbloodbagiv.c.

64 {
65 ItemBase ingredient2;
66 Class.CastTo(ingredient2, ingredients[1]);
67 ItemBase result;
68 Class.CastTo(result, results.Get(0));
69
70 BloodContainerBase bloodBag;
71
72 if ( Class.CastTo( bloodBag, ingredient2) )
73 {
74 if ( bloodBag.GetBloodTypeVisible() )
75 BloodContainerBase.Cast(result).SetBloodTypeVisible( true );
76 }
77
78 if( result)
79 MiscGameplayFunctions.TransferItemProperties(ingredient2,result, true, true, false, true);
80 }

References Class::CastTo().

◆ Do() [17/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftbonebait.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [18/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 89 of file craftbonehook.c.

90 {
91 Debug.Log("Recipe Do method called","recipes");
92 }

References Debug::Log().

◆ Do() [19/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 64 of file craftboneknife.c.

65 {
66 ItemBase ingredient0;
67 Class.CastTo(ingredient0, ingredients[0]);
68 ItemBase result;
69 Class.CastTo(result, results.Get(0));
70 MiscGameplayFunctions.TransferItemProperties(ingredient0,result, false, true, true, true);
71 }

References Class::CastTo().

◆ Do() [20/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 73 of file craftbow.c.

74 {
75 Debug.Log("Recipe Do method called","recipes");
76 }

References Debug::Log().

◆ Do() [21/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 89 of file craftburlapstrips.c.

90 {
91 Debug.Log("Recipe Do method called","recipes");
92 }

References Debug::Log().

◆ Do() [22/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 72 of file craftcamonetshelter.c.

73 {
74 Debug.Log("Recipe Do method called","recipes");
75 }

References Debug::Log().

◆ Do() [23/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 70 of file craftcookingstand.c.

71 {
72 Debug.Log("Recipe Do method called","recipes");
73 }

References Debug::Log().

◆ Do() [24/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 64 of file craftcourierbag.c.

65 {
66 Debug.Log("Recipe Do method called","recipes");
67 }

References Debug::Log().

◆ Do() [25/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 69 of file craftfencekit.c.

70 {
71 /*ItemBase fence_kit = results[0];
72 Rope rope = Rope.Cast(fence_kit.GetInventory().CreateAttachment("Rope"));
73 MiscGameplayFunctions.TransferItemProperties(ingredients[0],rope);*/
74 Debug.Log("Recipe Do method called","recipes");
75 }

References Debug::Log().

◆ Do() [26/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 86 of file craftfireplace.c.

87 {
88 ItemBase result = ItemBase.Cast( results.Get( 0 ) );
89 ItemBase ingredient1 = ingredients[0];
90 ItemBase ingredient2 = ingredients[1];
91
92 //clear inventory reservation
93 if ( !GetGame().IsMultiplayer() )
94 {
96 ingredient1.GetInventory().GetCurrentInventoryLocation( loc );
97 player.GetInventory().ClearInventoryReservationEx( ingredient1, loc );
98 ingredient2.GetInventory().GetCurrentInventoryLocation( loc );
99 player.GetInventory().ClearInventoryReservationEx( ingredient2, loc );
100 }
101
102 //Ingredient 1
103 if ( ingredient1.GetQuantity() <= 0 )
104 {
105 if ( GetGame().IsServer() && GetGame().IsMultiplayer() )
106 {
107 player.ServerTakeEntityToTargetAttachment( result, ingredient1 ); // multiplayer server side
108 }
109 else
110 {
111 player.LocalTakeEntityToTargetAttachment( result, ingredient1 ); // single player or multiplayer client side
112 }
113 }
114 else
115 {
116 string ingredient1_classname = ingredient1.GetType();
117 ItemBase attachment1 = ItemBase.Cast( result.GetInventory().CreateAttachment( ingredient1_classname ) );
118 MiscGameplayFunctions.TransferItemProperties( ingredient1, attachment1 );
119 attachment1.SetQuantity( 1 );
120 attachment1.SetCleanness(0);
121
122 //set quantity to ingredient
123 ingredient1.AddQuantity( -1 );
124 }
125
126 //Ingredient 2
127 if ( ingredient2.GetQuantity() <= 0 )
128 {
129 if ( GetGame().IsServer() && GetGame().IsMultiplayer() )
130 {
131 player.ServerTakeEntityToTargetAttachment( result, ingredient2 ); // multiplayer server side
132 }
133 else
134 {
135 player.LocalTakeEntityToTargetAttachment( result, ingredient2 ); // single player or multiplayer client side
136 }
137 }
138 else
139 {
140 string ingredient2_classname = ingredient2.GetType();
141 ItemBase attachment2 = ItemBase.Cast( result.GetInventory().CreateAttachment( ingredient2_classname ) );
142 MiscGameplayFunctions.TransferItemProperties( ingredient2, attachment2 );
143 attachment2.SetQuantity( 1 );
144 attachment2.SetCleanness(0);
145 //set quantity to ingredient
146 ingredient2.AddQuantity( -1 );
147 }
148 }

References GetGame().

◆ Do() [27/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 74 of file craftfishingrod.c.

75 {
76 Debug.Log("Recipe Do method called","recipes");
77 }

References Debug::Log().

◆ Do() [28/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftfishnettrap.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [29/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftgasmask_filter_improvised.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [30/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftghillieattachment.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [31/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftghilliebushrag.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [32/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftghilliehood.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [33/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftghilliesuit.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [34/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftghillietop.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [35/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftgorkahelmetcomplete.c.

64 {
65 }

◆ Do() [36/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 85 of file craftgutsrope.c.

86 {
87 Debug.Log("Recipe Do method called","recipes");
88 }

References Debug::Log().

◆ Do() [37/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file crafthanddrillkit.c.

66 {
67 Debug.Log("Recipe Do method called","recipes");
68 }

References Debug::Log().

◆ Do() [38/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 67 of file craftimprovisedbag.c.

68 {
69 Debug.Log("Recipe Do method called","recipes");
70 }

References Debug::Log().

◆ Do() [39/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 64 of file craftimprovisedexplosive.c.

65 {
66 Debug.Log("Recipe Do method called","recipes");
67 }

References Debug::Log().

◆ Do() [40/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 67 of file craftimprovisedleatherbag.c.

68 {
69 Debug.Log("Recipe Do method called","recipes");
70 }

References Debug::Log().

◆ Do() [41/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 64 of file craftleathercourierbag.c.

65 {
66 Debug.Log("Recipe Do method called","recipes");
67 }

References Debug::Log().

◆ Do() [42/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 61 of file craftleathersack.c.

62 {
63 Debug.Log("Recipe Do method called","recipes");
64 }

References Debug::Log().

◆ Do() [43/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 64 of file craftlongtorch.c.

65 {
66 Debug.Log("Recipe Do method called","recipes");
67
68 ItemBase rag = ingredients[0];
69 rag.SetCleanness(0);
70 Torch torch = Torch.Cast(results[0]);
71 torch.SetTorchDecraftResult(ingredients[1].GetType());
72
73 if ( GetGame().IsMultiplayer() && GetGame().IsServer() )
74 {
75 player.ServerTakeEntityToTargetAttachment(torch, rag);
76 torch.StandUp();
77 torch.CraftingInit(rag.GetQuantity());
78 }
79 else if ( !GetGame().IsMultiplayer() )
80 {
81 player.LocalTakeEntityToTargetAttachment(torch, rag);
82 }
83 }
string GetType()
Get config class of object.
Definition: object.c:334

References GetGame(), GetType(), and Debug::Log().

◆ Do() [44/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 60 of file craftmetalwire.c.

61 {
62 // We will save the wire type for decrafting
63 MetalWire wire = MetalWire.Cast( results[0] );
64 if ( wire )
65 {
66 int health = wire.GetHealthLevel();
67 health++;
68 Print(health);
69 wire.SetHealth01("","", 1 - 0.3*health);
70 }
71 }
proto void Print(void var)
Prints content of variable to console/log.

References Print().

◆ Do() [45/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file craftrabbitsnare.c.

66 {
67 Debug.Log("Recipe Do method called","recipes");
68 }

References Debug::Log().

◆ Do() [46/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 101 of file craftrag.c.

102 {
103 ItemBase result;
104 Class.CastTo(result, results.Get(0));
105 ItemBase ingredient2 = ingredients[1];
106 int quantity = ingredient2.ConfigGetFloat("ragQuantity");
107
108 result.SetQuantity(quantity);
109 }

References Class::CastTo().

◆ Do() [47/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftragrope.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [48/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftsalinebagiv.c.

64 {
65 ItemBase ingredient2;
66 Class.CastTo(ingredient2, ingredients[1]);
67 ItemBase result;
68 Class.CastTo(result, results.Get(0));
69
70 if( result )
71 MiscGameplayFunctions.TransferItemProperties(ingredient2,result, true, true, false, true);
72 Debug.Log("Recipe Do method called","recipes");
73 }

References Class::CastTo(), and Debug::Log().

◆ Do() [49/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 68 of file craftshelterkit.c.

69 {
70 }

◆ Do() [50/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 89 of file craftsmallfishtrap.c.

90 {
91 Debug.Log("Recipe Do method called","recipes");
92 }

References Debug::Log().

◆ Do() [51/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 70 of file craftspearbone.c.

71 {
72 Debug.Log("Recipe Do method called","recipes");
73 }

References Debug::Log().

◆ Do() [52/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 70 of file craftspearstone.c.

71 {
72 Debug.Log("Recipe Do method called","recipes");
73 }

References Debug::Log().

◆ Do() [53/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 92 of file craftsplint.c.

93 {
94 Debug.Log("Recipe Do method called","recipes");
95
96 ItemBase ingredient1 = ingredients[0];
97
98 if (ingredients[0].Type() == Rag)
99 {
100 //Print("Are we getting here?");
101 ingredient1.AddQuantity(-4);
102 }
103
104 if (ingredients[0].Type() == BandageDressing)
105 {
106 //Print("We also get here then");
107 ingredient1.AddQuantity(-ingredient1.GetQuantityMax());
108 }
109
110 if (ingredients[0].Type() == DuctTape)
111 {
112 //Print("We also get here then");
113 ingredient1.AddQuantity(-ingredient1.GetQuantityMax()/2);
114 }
115 }
string Type

References Debug::Log(), and Type.

◆ Do() [54/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 66 of file craftstoneknife.c.

67 {
68 ItemBase ingredient0;
69 Class.CastTo(ingredient0, ingredients[0]);
70 ItemBase result;
71 Class.CastTo(result, results.Get(0));
72 MiscGameplayFunctions.TransferItemProperties(ingredient0,result, false, true, true, true);
73 }

References Class::CastTo().

◆ Do() [55/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftsuppressor.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [56/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 86 of file crafttannedleather.c.

87 {
88 Debug.Log("Craft Tanned Leather","recipes");
89
90 ItemBase result;
91 Class.CastTo(result, results.Get(0));
92 ItemBase ingredient1 = ingredients[0];
93
94 //Set tanned leather output quantity
95 int quantity = ingredient1.ConfigGetFloat("leatherYield");
96 float qtyModifier = (4 - ingredient1.GetHealthLevel(""))/4; // Normalize the health level so Pristine is 1 and Ruined is 0
97 quantity = quantity * qtyModifier;
98
99 result.SetQuantity(quantity);
100
101 //Use X% of GardenLime for each tanned leather item crafted
102 ItemBase gardenLime = ingredients[1];
103 float usedLime = (gardenLime.GetQuantityMax() * m_PercentageUsed) * quantity;
104 gardenLime.SetQuantity(gardenLime.GetQuantity() - usedLime);
105
106 result.SetHealthMax("","");
107
108 //Split stack if returned quantity over Max stack
109 if (quantity > result.GetQuantityMax())
110 {
111 //Allow spawn of a second stack of tanned leather
112 MiscGameplayFunctions.CreateItemBasePiles("TannedLeather", player.GetPosition(), (quantity - 8), result.GetMaxHealth() ,false);
113 }
114 }

References Class::CastTo(), Debug::Log(), and m_PercentageUsed.

◆ Do() [57/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 79 of file craftterritoryflagkit.c.

80 {
81 /*ItemBase fence_kit = results[0];
82 Rope rope = Rope.Cast(fence_kit.GetInventory().CreateAttachment("Rope"));
83 MiscGameplayFunctions.TransferItemProperties(ingredients[0],rope);*/
84 Debug.Log("Recipe Do method called","recipes");
85 }

References Debug::Log().

◆ Do() [58/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 64 of file crafttorch.c.

65 {
66 Debug.Log("Recipe Do method called","recipes");
67
68 ItemBase rag = ingredients[0];
69 rag.SetCleanness(0);
70 Torch torch = Torch.Cast(results[0]);
71 if (torch)
72 {
73 torch.SetTorchDecraftResult(ingredients[1].GetType());
74
75 if ( GetGame().IsMultiplayer() && GetGame().IsServer() )
76 {
77 player.ServerTakeEntityToTargetAttachment(torch, rag);
78 }
79 else if ( !GetGame().IsMultiplayer() )
80 {
81 int slotID = InventorySlots.GetSlotIdFromString("Rags");
82 player.PredictiveTakeEntityToTargetAttachmentEx(torch, rag,slotID);
83
84 }
85 torch.StandUp();
86 torch.CraftingInit(rag.GetQuantity());
87 }
88 }
provides access to slot configuration
Definition: inventoryslots.c:6
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id

References GetGame(), InventorySlots::GetSlotIdFromString(), GetType(), and Debug::Log().

◆ Do() [59/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file crafttripwire.c.

64 {
65 // We will save the wire type for decrafting
66 TripwireTrap tripWire = TripwireTrap.Cast( results[0] );
67 if ( tripWire )
68 {
69 if ( ingredients[1].IsInherited( MetalWire ) )
70 tripWire.SetWireType( eWireMaterial.WIRE );
71 //Variants to make the trap out of rope or barbed wire
72 /*
73 else if ( ingredients[1].IsInherited( BarbedWire ) )
74 tripWire.SetWireType( eWireMaterial.BARBED_WIRE );
75 else if ( ingredients[1].IsInherited( Rope ) )
76 tripWire.SetWireType( eWireMaterial.ROPE );
77 */
78 }
79 }
eWireMaterial
Definition: trap_tripwire.c:3
void TripwireTrap()
Definition: trap_tripwire.c:23

References TripwireTrap().

◆ Do() [60/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 79 of file crafttruck01doublewheel.c.

80 {
81 ItemBase ingredient1 = ingredients[0];
82 ItemBase ingredient2 = ingredients[1];
83 vector ingred_pos;
84
85 if(ingredient1.GetHierarchyRootPlayer())
86 {
87 ingred_pos = ingredient2.GetPosition();
88 }
89 else
90 {
91 ingred_pos = ingredient1.GetPosition();
92 }
93
94 ItemBase result1 = results.Get(0);
95 result1.SetPosition(ingred_pos);
96 }

◆ Do() [61/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 68 of file craftwatchtowerkit.c.

69 {
70 /*ItemBase fence_kit = results[0];
71 Rope rope = Rope.Cast(fence_kit.GetInventory().CreateAttachment("Rope"));
72 MiscGameplayFunctions.TransferItemProperties(ingredients[0],rope);*/
73 Debug.Log("Recipe Do method called","recipes");
74 }

References Debug::Log().

◆ Do() [62/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftwoodencrate.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [63/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file craftwoodenplank.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [64/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 13 of file cutoutseeds.c.

14 {
15 // Adjusts quantity of results to the quantity of the 1st ingredient
16 Edible_Base item_ingredient = Edible_Base.Cast(ingredients[0]);
17
18 float MaxQuantity = item_ingredient.GetQuantityMax();
19 float CurrentQuantity = item_ingredient.GetQuantity();
20 float qtPercentage = CurrentQuantity / MaxQuantity;
21
22 FoodStageType stage = item_ingredient.GetFoodStageType();
23
24 float seedMultiplier = Math.RandomFloat(0.5, 1);
25
26 //Set seeds amount proportional to ingredient quantity. No seeds if the is less that 30% of ingredient
27 if(qtPercentage < 0.3)
28 seedMultiplier = 0;
29 else
30 seedMultiplier *= qtPercentage;
31
32 //Set seeds amount based on the stage of the ingredient
33 switch(stage)
34 {
35 case FoodStageType.BURNED:
36 case FoodStageType.BOILED:
37 case FoodStageType.BAKED:
38 seedMultiplier *= 0;
39 break;
40 case FoodStageType.DRIED:
41 case FoodStageType.ROTTEN:
42 seedMultiplier *= 0.5;
43 break;
44 case FoodStageType.RAW:
45 default:
46 seedMultiplier *= 1;
47 break;
48 }
49
50 ItemBase result = results[0];
51 float maxQuantity = result.GetQuantityMax();
52 float resultQty = m_ResultSetQuantity[0]/ maxQuantity;
53 resultQty *= seedMultiplier * maxQuantity;
54
55 resultQty = Math.Ceil(resultQty);
56
57 result.SetQuantity(resultQty);
58
59 Debug.Log("Recipe Do method called","recipes");
60 }
FoodStageType
Definition: foodstage.c:2
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
static proto float Ceil(float f)
Returns ceil of value.

References Math::Ceil(), Debug::Log(), and Math::RandomFloat().

◆ Do() [65/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 88 of file decraftarmband.c.

89 {
90 Debug.Log("Recipe Do method called","recipes");
91 }

References Debug::Log().

◆ Do() [66/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 92 of file decraftbow.c.

93 {
94 Debug.Log("Recipe Do method called","recipes");
95 }

References Debug::Log().

◆ Do() [67/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 104 of file decraftcamonetshelter.c.

105 {
106 Debug.Log("Recipe Do method called","recipes");
107 }

References Debug::Log().

◆ Do() [68/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 121 of file decraftcarriercomplete.c.

122 {
123 Debug.Log("Recipe Do method called","recipes");
124 }

References Debug::Log().

◆ Do() [69/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 109 of file decraftcarrierholster.c.

110 {
111 Debug.Log("Recipe Do method called","recipes");
112 }

References Debug::Log().

◆ Do() [70/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 109 of file decraftcarrierpouches.c.

110 {
111 Debug.Log("Recipe Do method called","recipes");
112 }

References Debug::Log().

◆ Do() [71/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 92 of file decraftcookingstand.c.

93 {
94 Debug.Log("Recipe Do method called","recipes");
95 }

References Debug::Log().

◆ Do() [72/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 103 of file decraftcourierbag.c.

104 {
105 Debug.Log("Recipe Do method called","recipes");
106 }

References Debug::Log().

◆ Do() [73/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file decraftdetonator.c.

64 {
65 Battery9V battery;
66 if (results.IsValidIndex(0))
67 {
68 battery = Battery9V.Cast(results[0]);
69 }
70 if (battery)
71 {
72 if ( battery.GetCompEM() )
73 {
74 battery.GetCompEM().SetEnergy0To1(Math.RandomFloatInclusive(0.25,1));
75 }
76 }
77 }
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Definition: enmath.c:86

References Math::RandomFloatInclusive().

◆ Do() [74/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 102 of file decraftfishingrod.c.

103 {
104 Debug.Log("Recipe Do method called","recipes");
105 }

References Debug::Log().

◆ Do() [75/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 102 of file decraftfishnettrap.c.

103 {
104 Debug.Log("Recipe Do method called","recipes");
105 }

References Debug::Log().

◆ Do() [76/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 105 of file decraftghillieattachment.c.

106 {
107 Debug.Log("Recipe Do method called","recipes");
108 }

References Debug::Log().

◆ Do() [77/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 106 of file decraftghilliebushrag.c.

107 {
108 Debug.Log("Recipe Do method called","recipes");
109 }

References Debug::Log().

◆ Do() [78/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 106 of file decraftghilliehood.c.

107 {
108 Debug.Log("Recipe Do method called","recipes");
109 }

References Debug::Log().

◆ Do() [79/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 105 of file decraftghilliesuit.c.

106 {
107 Debug.Log("Recipe Do method called","recipes");
108 }

References Debug::Log().

◆ Do() [80/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 106 of file decraftghillietop.c.

107 {
108 Debug.Log("Recipe Do method called","recipes");
109 }

References Debug::Log().

◆ Do() [81/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 92 of file decrafthanddrillkit.c.

93 {
94 Debug.Log("Recipe Do method called","recipes");
95 }

References Debug::Log().

◆ Do() [82/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 103 of file decraftimprovisedbag.c.

104 {
105 Debug.Log("Recipe Do method called","recipes");
106 }

References Debug::Log().

◆ Do() [83/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 103 of file decraftimprovisedleatherbag.c.

104 {
105 Debug.Log("Recipe Do method called","recipes");
106 }

References Debug::Log().

◆ Do() [84/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 103 of file decraftleathercourierbag.c.

104 {
105 Debug.Log("Recipe Do method called","recipes");
106 }

References Debug::Log().

◆ Do() [85/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 88 of file decraftleathersack.c.

89 {
90 Debug.Log("Recipe Do method called","recipes");
91 }

References Debug::Log().

◆ Do() [86/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 92 of file decraftsnaretrap.c.

93 {
94 Debug.Log("Recipe Do method called","recipes");
95 }

References Debug::Log().

◆ Do() [87/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 92 of file decraftspear.c.

93 {
94 Debug.Log("Recipe Do method called","recipes");
95 }

References Debug::Log().

◆ Do() [88/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 92 of file decraftsplint.c.

93 {
94 Debug.Log("Recipe Do method called","recipes");
95 }

References Debug::Log().

◆ Do() [89/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 93 of file decrafttripwire.c.

94 {
95 Debug.Log("Recipe Do method called","recipes");
96 }

References Debug::Log().

◆ Do() [90/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 84 of file decrafttruck01doublewheel.c.

85 {
86 ItemBase ingredient1 = ingredients[0];
87
88 ItemBase result1 = results.Get(0);
89
90 result1.SetPosition(ingredient1.GetPosition()- "0 0.16 0");
91
92 ItemBase result2 = results.Get(1);
93 result2.SetPosition(ingredient1.GetPosition() + "0 0.12 0.1");
94
95 }

◆ Do() [91/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 85 of file decraftwoodencrate.c.

86 {
87 ItemBase crate;
88 Class.CastTo(crate, ingredients[0]);
89 int hp = crate.GetHealthLevel("");
90
91 switch ( hp )
92 {
94 results[0].SetQuantity(Math.RandomIntInclusive( 6, 8 ));
95 results[0].SetHealth( results[0].GetMaxHealth() * Math.RandomFloat( 0.6, 0.8 ));
96 results[1].SetQuantity(Math.RandomIntInclusive( 12, 16 ));
97 results[1].SetHealth( results[1].GetMaxHealth() * Math.RandomFloat( 0.6, 0.8 ));
98 break;
99
101 results[0].SetQuantity(Math.RandomIntInclusive( 5, 7 ));
102 results[0].SetHealth( results[0].GetMaxHealth() * Math.RandomFloat( 0.5, 0.8 ));
103 results[1].SetQuantity(Math.RandomIntInclusive( 9, 13 ));
104 results[1].SetHealth( results[1].GetMaxHealth() * Math.RandomFloat( 0.5, 0.8 ));
105 break;
106
108 results[0].SetQuantity(Math.RandomIntInclusive( 4, 6 ));
109 results[0].SetHealth( results[0].GetMaxHealth() * Math.RandomFloat( 0.3, 0.6 ));
110 results[1].SetQuantity(Math.RandomIntInclusive( 6, 10 ));
111 results[1].SetHealth( results[1].GetMaxHealth() * Math.RandomFloat( 0.3, 0.6 ));
112 break;
113
115 results[0].SetQuantity(Math.RandomIntInclusive( 3, 5 ));
116 results[0].SetHealth( results[0].GetMaxHealth() * Math.RandomFloat( 0.1, 0.3 ));
117 results[1].SetQuantity(Math.RandomIntInclusive( 3, 7 ));
118 results[1].SetHealth( results[1].GetMaxHealth() * Math.RandomFloat( 0.1, 0.3 ));
119 break;
120
121 //unnescessary? We do not allow recipe crafting with ruined items?
123 results[0].SetQuantity(Math.RandomIntInclusive( 1, 2 ));
124 results[0].SetHealth( results[0].GetMaxHealth() * Math.RandomFloat( 0.05, 0.2 ));
125 results[1].SetQuantity(Math.RandomIntInclusive( 1, 4 ));
126 results[1].SetHealth( results[1].GetMaxHealth() * Math.RandomFloat( 0.05, 0.2 ));
127 break;
128
129 default:
130 results[0].SetQuantity(Math.RandomIntInclusive( 1, 2 ));
131 results[0].SetHealth( results[0].GetMaxHealth() * Math.RandomFloat( 0.05, 0.2 ));
132 results[1].SetQuantity(Math.RandomIntInclusive( 1, 4 ));
133 results[1].SetHealth( results[1].GetMaxHealth() * Math.RandomFloat( 0.05, 0.2 ));
134 break;
135 }
136
137 /*
138 float originalPlanks = 8;
139 float originalNails = 16;
140
141 float hp = crate.GetHealth01("","Health");
142 originalPlanks *= hp;
143 originalNails *= hp;
144
145 int newPlanks = Math.Round( originalPlanks );
146 int newNails = Math.Round( originalNails );
147
148 m_ResultSetQuantity[0] = newPlanks;
149 m_ResultSetQuantity[1] = newNails;
150 */
151 Debug.Log("Recipe Do method called","recipes");
152 }
const int STATE_RUINED
Definition: constants.c:733
const int STATE_WORN
Definition: constants.c:736
const int STATE_DAMAGED
Definition: constants.c:735
const int STATE_BADLY_DAMAGED
Definition: constants.c:734
const int STATE_PRISTINE
Definition: constants.c:737
float GetMaxHealth()
Equivalent of GetMaxHealth("", "");.
Definition: object.c:900

References Class::CastTo(), GetMaxHealth(), Debug::Log(), Math::RandomFloat(), Math::RandomIntInclusive(), GameConstants::STATE_BADLY_DAMAGED, GameConstants::STATE_DAMAGED, GameConstants::STATE_PRISTINE, GameConstants::STATE_RUINED, and GameConstants::STATE_WORN.

◆ Do() [92/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 79 of file disinfectitem.c.

80 {
81 ItemBase ingredient1, ingredient2;
82 Class.CastTo(ingredient1, ingredients[0]);
83
84
85 ingredient1.AddQuantity(-ingredient1.GetDisinfectQuantity());
86
87 Class.CastTo(ingredient2, ingredients[1]);
88 ingredient2.RemoveAllAgentsExcept(eAgents.BRAIN | eAgents.SALMONELLA | eAgents.CHOLERA);
89 ingredient2.SetCleanness(1);
90 }
eAgents
Definition: eagents.c:3

References Class::CastTo().

◆ Do() [93/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 93 of file drainliquid.c.

94 {
95 ItemBase ingredient1 = ingredients[0];
96 ItemBase ingredient2 = ingredients[1];
97
98 ItemBase entity_in_hands = ItemBase.Cast(player.GetHumanInventory().GetEntityInHands());
99
100 if( entity_in_hands == ingredient1 )
101 {
102 Liquid.Transfer(ingredient2,ingredient1);
103 }
104 else
105 {
106 Liquid.Transfer(ingredient1,ingredient2);
107 }
108 }
static void Transfer(ItemBase source_ent, ItemBase target_ent, float quantity=-1)
Definition: liquid.c:39

References Liquid::Transfer().

◆ Do() [94/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 79 of file extinguishtorch.c.

80 {
81 ItemBase ingredient1;
82 Class.CastTo(ingredient1, ingredients[0]);
83 if (ingredient1.HasEnergyManager())
84 {
85 ingredient1.GetCompEM().SwitchOff();
86 ingredient1.SetWetMax();
87 }
88 }

References Class::CastTo().

◆ Do() [95/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 86 of file fillgasmask_filter.c.

87 {
88 // Get charcoal quantity
89 ItemBase charcoal = ingredients[0];
90 float charcoalCurrent = charcoal.GetQuantity();
91
92 // Get filter quantity
93 ItemBase filter = ingredients[1];
94
95 float filterMax = filter.GetQuantityMax();
96 float filterCurrent = filter.GetQuantity();
97
98 //1 tablet = 10 quantity
99 float fillAmount = filterCurrent + (charcoalCurrent * 10);
100
101 // All if possible
102 if(fillAmount >= filterMax)
103 {
104 ingredients[1].SetQuantity(filterMax);
105
106 //Remove only the used part from charcoal
107 fillAmount = fillAmount - filterMax;
108 ingredients[0].SetQuantity(Math.Round(fillAmount / 10));
109 }
110 else
111 {
112 ingredients[1].SetQuantity( fillAmount);
113 ingredients[0].AddQuantity( - charcoalCurrent);
114 }
115 }
static proto float Round(float f)
Returns mathematical round of value.

References Math::Round().

◆ Do() [96/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file fillsyringe.c.

64 {
65 Debug.Log("Recipe Do method called","recipes");
66 }

References Debug::Log().

◆ Do() [97/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 73 of file fuelchainsaw.c.

74 {
75 ItemBase chainsaw;
76 Class.CastTo(chainsaw, ingredients[0]);
77 ItemBase container;
78 Class.CastTo(container, ingredients[1]);
79
80 float current_energy_level = chainsaw.GetCompEM().GetEnergy();
81 float energy_max = chainsaw.GetCompEM().GetEnergyMax();
82 float can_add_amount = energy_max - current_energy_level;
83
84 if( can_add_amount > 0 ) chainsaw.GetCompEM().AddEnergy(can_add_amount);
85 container.AddQuantity(-can_add_amount);
86 }

References Class::CastTo().

◆ Do() [98/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 91 of file loadmagazine.c.

92 {
93
94 }

◆ Do() [99/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 113 of file opencan.c.

114 {
115 ItemBase can;
116 Class.CastTo(can, ingredients[0]);
117 ItemBase tool;
118 Class.CastTo(tool, ingredients[1]);
119 PlayerBase playerPB;
120 Class.CastTo(playerPB, player);
121 OpenItem.OpenAndSwitch(tool, can, playerPB, specialty_weight);
122 //DamageTool(tool,player);
123 }
static void OpenAndSwitch(ItemBase item_tool, ItemBase item_target, PlayerBase player, float specialty_weight=0)
WIll open the 'item_target' by spawning a new entity and transferring item variables to the new one.
Definition: openitem.c:4

References Class::CastTo(), and OpenItem::OpenAndSwitch().

◆ Do() [100/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 64 of file paintak101.c.

65 {
66 PaintItem.Paint(ingredients[0], ingredients[1], "AK101", player, specialty_weight);
67 }
static void Paint(ItemBase item_tool, ItemBase item_target, string base_name, PlayerBase player, float specialty_weight=0)
WIll open the 'item_target' by spawning a new entity and transferring item variables to the new one.
Definition: paintitem.c:4

References PaintItem::Paint().

◆ Do() [101/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintak10130mag.c.

66 {
67 /*
68 Magazine ingredient2;
69 Class.CastTo(ingredient2, ingredients[1]);
70 Magazine result;
71 Class.CastTo(result, results.Get(0));
72
73 int num_of_rounds = ingredient2.GetAmmoCount();
74 result.SetAmmoCount(num_of_rounds);
75 */
76 PaintItem.Paint(ingredients[0], ingredients[1], "Mag_AK101_30Rnd", player, specialty_weight);
77 }

References PaintItem::Paint().

◆ Do() [102/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file paintak74.c.

64 {
65 PaintItem.Paint(ingredients[0], ingredients[1], "B95", player, specialty_weight);
66 }

References PaintItem::Paint().

◆ Do() [103/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintak7430mag.c.

66 {
67 /*
68 Magazine ingredient2;
69 Class.CastTo(ingredient2, ingredients[1]);
70 Magazine result;
71 Class.CastTo(result, results.Get(0));
72
73 int num_of_rounds = ingredient2.GetAmmoCount();
74 result.SetAmmoCount(num_of_rounds);
75 */
76 PaintItem.Paint(ingredients[0], ingredients[1], "Mag_AK74_30Rnd", player, specialty_weight);
77 }

References PaintItem::Paint().

◆ Do() [104/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintak74hndgrdblack.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "AK74_Hndgrd_Black", player));
68 }

◆ Do() [105/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintak74hndgrdcamo.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "AK74_Hndgrd_Camo", player));
68 }

◆ Do() [106/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintak74woodbttstckblack.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "AK74_WoodBttstck_Black", player));
68 }

◆ Do() [107/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintak74woodbttstckcamo.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "AK74_WoodBttstck_Camo", player));
68 }

◆ Do() [108/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintakfoldingbttstck.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "AK_FoldingBttstck", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [109/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintakmdrummag.c.

66 {
67 /*
68 Magazine ingredient2;
69 Class.CastTo(ingredient2, ingredients[1]);
70 Magazine result;
71 Class.CastTo(result, results.Get(0));
72
73 int num_of_rounds = ingredient2.GetAmmoCount();
74 result.SetAmmoCount(num_of_rounds);
75 */
76 PaintItem.Paint(ingredients[0], ingredients[1], "Mag_AKM_Drum75Rnd", player, specialty_weight);
77 }

References PaintItem::Paint().

◆ Do() [110/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintakmpalm30mag.c.

66 {
67 /*
68 Magazine ingredient2;
69 Class.CastTo(ingredient2, ingredients[1]);
70 Magazine result;
71 Class.CastTo(result, results.Get(0));
72
73 int num_of_rounds = ingredient2.GetAmmoCount();
74 result.SetAmmoCount(num_of_rounds);
75 */
76 PaintItem.Paint(ingredients[0], ingredients[1], "Mag_AKM_Palm30Rnd", player, specialty_weight);
77 }

References PaintItem::Paint().

◆ Do() [111/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintakplasticbttstck.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "AK_PlasticBttstck", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [112/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintakrailhndgrd.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "AK_RailHndgrd", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [113/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintaks74u.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "AKS74U", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [114/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintaks74ubttstck.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "AKS74U_Bttstck", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [115/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintakwoodbttstckblack.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "AK_WoodBttstck_Black", player));
68 }

◆ Do() [116/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintakwoodbttstckcamo.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "AK_WoodBttstck_Camo", player));
68 }

◆ Do() [117/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintb95.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "B95", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [118/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintballistichelmet.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "BallisticHelmet", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [119/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintcmag10.c.

66 {
67 /*
68 Magazine ingredient2;
69 Class.CastTo(ingredient2, ingredients[1]);
70 Magazine result;
71 Class.CastTo(result, results.Get(0));
72
73 int num_of_rounds = ingredient2.GetAmmoCount();
74 result.SetAmmoCount(num_of_rounds);
75 */
76 PaintItem.Paint(ingredients[0], ingredients[1], "Mag_CMAG_10Rnd", player, specialty_weight);
77 }

References PaintItem::Paint().

◆ Do() [120/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintcmag20.c.

66 {/*
67 Magazine ingredient2;
68 Class.CastTo(ingredient2, ingredients[1]);
69 Magazine result;
70 Class.CastTo(result, results.Get(0));
71
72 int num_of_rounds = ingredient2.GetAmmoCount();
73 result.SetAmmoCount(num_of_rounds);*/
74 PaintItem.Paint(ingredients[0], ingredients[1], "Mag_CMAG_20Rnd", player, specialty_weight);
75 }

References PaintItem::Paint().

◆ Do() [121/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintcmag30.c.

66 {
67 /*
68 Magazine ingredient2;
69 Class.CastTo(ingredient2, ingredients[1]);
70 Magazine result;
71 Class.CastTo(result, results.Get(0));
72
73 int num_of_rounds = ingredient2.GetAmmoCount();
74 result.SetAmmoCount(num_of_rounds);
75 */
76 PaintItem.Paint(ingredients[0], ingredients[1], "Mag_CMAG_30Rnd", player, specialty_weight);
77
78 }

References PaintItem::Paint().

◆ Do() [122/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintcmag40.c.

66 {
67 /*
68 Magazine ingredient2;
69 Class.CastTo(ingredient2, ingredients[1]);
70 Magazine result;
71 Class.CastTo(result, results.Get(0));
72
73 int num_of_rounds = ingredient2.GetAmmoCount();
74 result.SetAmmoCount(num_of_rounds);
75 */
76 PaintItem.Paint(ingredients[0], ingredients[1], "B95", player, specialty_weight);
77 }

References PaintItem::Paint().

◆ Do() [123/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintcz527.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "CZ527", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [124/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintcz527camoblack.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "CZ527_Camo", player));
68 }

◆ Do() [125/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintcz527camogreen.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "CZ527_Camo", player));
68 }

◆ Do() [126/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintdarkmotohelmet.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "DarkMotoHelmet", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [127/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintfirefighteraxe.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "FirefighterAxe", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [128/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintghillieattblack.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "GhillieAtt_Mossy", player));
68 }

◆ Do() [129/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file paintghillieattgreen.c.

64 {
65 PaintItem.Paint(ingredients[0], ingredients[1], "B95", player, specialty_weight);
66 }

References PaintItem::Paint().

◆ Do() [130/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintghillieattgreenmossy.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "GhillieAtt_Woodland", player));
68 }

◆ Do() [131/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintghilliebushragblack.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "GhillieBushrag_Mossy", player));
68 }

◆ Do() [132/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file paintghilliebushraggreen.c.

64 {
65 PaintItem.Paint(ingredients[0], ingredients[1], "B95", player, specialty_weight);
66 }

References PaintItem::Paint().

◆ Do() [133/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintghilliebushraggreenmossy.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "GhillieBushrag_Woodland", player));
68 }

◆ Do() [134/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file paintghilliehoodblack.c.

64 {
65 PaintItem.Paint(ingredients[0], ingredients[1], "B95", player, specialty_weight);
66 }

References PaintItem::Paint().

◆ Do() [135/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintghilliehoodgreen.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "B95", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [136/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintghilliehoodgreenmossy.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "GhillieHood_Woodland", player));
68 }

◆ Do() [137/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 63 of file paintghilliesuitblack.c.

64 {
65 PaintItem.Paint(ingredients[0], ingredients[1], "B95", player, specialty_weight);
66 }

References PaintItem::Paint().

◆ Do() [138/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintghilliesuitgreen.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "GhillieSuit_Woodland", player));
68 }

◆ Do() [139/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintghilliesuitgreenmossy.c.

66 {
67 //PaintItem.Paint(ingredients[0], ingredients[1], "B95", player, specialty_weight);
68 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "GhillieSuit_Woodland", player));
69 }

◆ Do() [140/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintghillietopblack.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "GhillieTop_Mossy", player));
68 }

◆ Do() [141/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintghillietopgreen.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "GhillieTop_Woodland", player));
68 }

◆ Do() [142/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintghillietopgreenmossy.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "GhillieTop_Woodland", player));
68 }

◆ Do() [143/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintgorkahelmet.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "GorkaHelmet", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [144/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintgorkahelmetcomplete.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "GorkaHelmetComplete", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [145/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintm4a1.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "M4A1", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [146/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintm4cqbbttstck.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "M4_CQBBttstck", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [147/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintm4mpbttstck.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "M4_MPBttstck", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [148/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintm4mphndgrd.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "M4_MPHndgrd", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [149/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintm4oebttstck.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "M4_OEBttstck", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [150/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintm4plastichndgrd.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "M4_PlasticHndgrd", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [151/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintm4rishndgrd.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "M4_RISHndgrd", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [152/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 68 of file paintmosin.c.

69 {
70 PaintItem.Paint(ingredients[0], ingredients[1], "Mosin9130", player, specialty_weight);
71 }

References PaintItem::Paint().

◆ Do() [153/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintmosincamoblack.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "Mosin9130_Camo", player));
68 }

◆ Do() [154/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintmosincamogreen.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "Mosin9130_Camo", player));
68 }

◆ Do() [155/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintmotohelmet.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "MotoHelmet", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [156/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintruger1022.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "Ruger1022", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [157/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintsawedoffmosin.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "SawedoffMosin9130", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [158/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintsawedoffmosincamoblack.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "SawedoffMosin9130_Camo", player));
68 }

◆ Do() [159/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintsawedoffmosincamogreen.c.

66 {
67 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[1], "SawedoffMosin9130_Camo", player));
68 }

◆ Do() [160/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintsks.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "SKS", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [161/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 65 of file paintzsh3pilothelmet.c.

66 {
67 PaintItem.Paint(ingredients[0], ingredients[1], "ZSh3PilotHelmet", player, specialty_weight);
68 }

References PaintItem::Paint().

◆ Do() [162/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 74 of file patchitem.c.

75 {
76 PluginRepairing module_repairing;
77 Class.CastTo(module_repairing, GetPlugin(PluginRepairing));
78 PlayerBase playerPB;
79 Class.CastTo(playerPB, player);
80 ItemBase ingredient1;
81 Class.CastTo(ingredient1, ingredients[0]);
82 ItemBase ingredient2;
83 Class.CastTo(ingredient2, ingredients[1]);
84 module_repairing.Repair(playerPB, ingredient1,ingredient2,m_Specialty); //TODO repair all damage zones if packed? Design pending
85 }

References Class::CastTo(), and GetPlugin().

◆ Do() [163/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 86 of file peelpotato.c.

87 {
88 ItemBase item_ingredient = ingredients[0];
89 float quantityMultiplier = item_ingredient.GetHealth01("","");
90
91 ItemBase item_result = results[0];
92 item_result.SetQuantityNormalized(quantityMultiplier);
93
94 Debug.Log("Recipe Do method called","recipes");
95 }

References Debug::Log().

◆ Do() [164/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 87 of file pokeholesbarrel.c.

88 {
89 }

◆ Do() [165/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 93 of file pourliquid.c.

94 {
95 ItemBase ingredient1 = ingredients[0];
96 ItemBase ingredient2 = ingredients[1];
97
98 ItemBase entity_in_hands = ItemBase.Cast(player.GetHumanInventory().GetEntityInHands());
99
100 if( entity_in_hands == ingredient1 )
101 {
102 Liquid.Transfer(ingredient1,ingredient2);
103 }
104 else
105 {
106 Liquid.Transfer(ingredient2,ingredient1);
107 }
108 }

References Liquid::Transfer().

◆ Do() [166/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 111 of file preparechicken.c.

112 {
113 // Adjusts quantity of results to the quantity of the 1st ingredient
114 ItemBase item_ingredient = ingredients[0];
115 //Class.CastTo(item_ingredient, ingredients[0]);
116
117 float MaxQuantity = item_ingredient.GetQuantityMax();
118 float CurrentQuantity = item_ingredient.GetQuantity();
119 float adjust = CurrentQuantity / MaxQuantity;
120
121 for (int i=0; i < 2; i++)
122 {
123 ItemBase item_result;
124 Class.CastTo(item_result, results.Get(i));
125
126 //Trasnfer current food state
127 MiscGameplayFunctions.TransferItemProperties(item_ingredient, item_result);
128
129 if (m_ResultSetFullQuantity[i] == false)
130 {
131 int qt = Math.Ceil(item_result.GetQuantityMax() * adjust);
132 item_result.SetQuantity(qt);
133 }
134 }
135
136 results[2].SetQuantity(2);
137
138 PluginLifespan module_lifespan = PluginLifespan.Cast( GetPlugin( PluginLifespan ) );
139 module_lifespan.UpdateBloodyHandsVisibility( player, true );
140
141 Debug.Log("Recipe Do method called","recipes");
142 }
void PluginLifespan()

References Class::CastTo(), Math::Ceil(), GetPlugin(), Debug::Log(), and PluginLifespan().

◆ Do() [167/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 13 of file preparefish.c.

14 {
15 // Adjusts quantity of results to the quantity of the 1st ingredient
16 ItemBase item_ingredient = ingredients[0];
17 //Class.CastTo(item_ingredient, ingredients[0]);
18
19 float MaxQuantity = item_ingredient.GetQuantityMax();
20 float CurrentQuantity = item_ingredient.GetQuantity();
21 float adjust = CurrentQuantity / MaxQuantity;
22
23 for (int i=0; i < results.Count(); i++)
24 {
25 ItemBase item_result;
26 Class.CastTo(item_result, results.Get(i));
27
28 //Trasnfer current food state
29 MiscGameplayFunctions.TransferItemProperties(item_ingredient, item_result);
30
31 if (m_ResultSetFullQuantity[i] == false)
32 {
33 item_result.SetQuantity(item_result.GetQuantityMax() * adjust);
34 }
35 }
36
37 PluginLifespan module_lifespan = PluginLifespan.Cast( GetPlugin( PluginLifespan ) );
38 module_lifespan.UpdateBloodyHandsVisibility( player, true );
39
40 Debug.Log("Recipe Do method called","recipes");
41 }

References Class::CastTo(), GetPlugin(), Debug::Log(), and PluginLifespan().

◆ Do() [168/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 123 of file preparerabbit.c.

124 {
125 // Adjusts quantity of results to the quantity of the 1st ingredient
126 ItemBase item_ingredient = ingredients[0];
127 //Class.CastTo(item_ingredient, ingredients[0]);
128
129 float MaxQuantity = item_ingredient.GetQuantityMax();
130 float CurrentQuantity = item_ingredient.GetQuantity();
131 float adjust = CurrentQuantity / MaxQuantity;
132
133 for (int i=0; i < results.Count(); i++)
134 {
135 ItemBase item_result;
136 Class.CastTo(item_result, results.Get(i));
137
138 //Trasnfer current food state
139 MiscGameplayFunctions.TransferItemProperties(item_ingredient, item_result);
140
141 if (m_ResultSetFullQuantity[i] == false)
142 {
143 int qt = Math.Ceil(item_result.GetQuantityMax() * adjust);
144 item_result.SetQuantity(qt);
145 }
146 }
147
148 PluginLifespan module_lifespan = PluginLifespan.Cast( GetPlugin( PluginLifespan ) );
149 module_lifespan.UpdateBloodyHandsVisibility( player, true );
150
151 Debug.Log("Recipe Do method called","recipes");
152 }

References Class::CastTo(), Math::Ceil(), GetPlugin(), Debug::Log(), and PluginLifespan().

◆ Do() [169/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 70 of file purifywater.c.

71 {
72 ItemBase ingredient2 = ingredients[1];
73 ingredient2.RemoveAllAgents();
74 }

◆ Do() [170/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 81 of file refueltorch.c.

82 {
83 Rag rag = Rag.Cast(ingredients[0]);
84 Torch torch = Torch.Cast(ingredients[1]);
85
86 if ( !GetGame().IsMultiplayer() )
87 {
89 rag.GetInventory().GetCurrentInventoryLocation( loc );
90 player.GetInventory().ClearInventoryReservationEx( rag, loc );
91 }
92
93 Rag rag_on_torch = Rag.Cast( torch.GetInventory().FindAttachment( rag.GetInventory().GetSlotId(0) ) );
94
95 if (rag_on_torch)
96 {
97 rag_on_torch.CombineItems(rag, false);
98 }
99 else
100 {
101 if ( GetGame().IsServer() && GetGame().IsMultiplayer() )
102 {
103 player.ServerTakeEntityToTargetAttachment(torch, rag); // multiplayer server side
104 }
105 else
106 {
107 player.LocalTakeEntityToTargetAttachment(torch, rag); // single player or multiplayer client side
108 }
109 }
110 }

References GetGame().

◆ Do() [171/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 72 of file repairelectric.c.

73 {
74 PluginRepairing module_repairing;
75 Class.CastTo(module_repairing, GetPlugin(PluginRepairing));
76 PlayerBase playerPB;
77 Class.CastTo(playerPB, player);
78 ItemBase ingredient1;
79 Class.CastTo(ingredient1, ingredients[0]);
80 ItemBase ingredient2;
81 Class.CastTo(ingredient2, ingredients[1]);
82 module_repairing.Repair(playerPB, ingredient1,ingredient2,m_Specialty);
83 }

References Class::CastTo(), and GetPlugin().

◆ Do() [172/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 72 of file repairepoxy.c.

73 {
74 PluginRepairing module_repairing;
75 Class.CastTo(module_repairing, GetPlugin(PluginRepairing));
76 PlayerBase playerPB;
77 Class.CastTo(playerPB, player);
78 ItemBase ingredient1;
79 Class.CastTo(ingredient1, ingredients[0]);
80 ItemBase ingredient2;
81 Class.CastTo(ingredient2, ingredients[1]);
82 module_repairing.Repair(playerPB, ingredient1,ingredient2,m_Specialty);
83 }

References Class::CastTo(), and GetPlugin().

◆ Do() [173/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 72 of file repaireyepatch.c.

73 {
74 ItemBase ingrEP = ingredients[0];
75 ItemBase ingrRag = ingredients[1];
76
77 ingrEP.SetHealth01("","",ingrRag.GetHealth01()); // set the health of the eye patch as the rag used to repair it.
78 }

◆ Do() [174/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 77 of file repairplanks.c.

78 {
79 ItemBase ingredient1 = ingredients[0];
80 if (ingredients[0].Type() == WoodenPlank)
81 {
82 ingredient1.AddQuantity(-2);
83 }
84
85 ItemBase ingredient2 = ingredients[1];
86 float mHealth = ingredient2.GetMaxHealth();
87 float percent = mHealth*0.2; //20% of the item's health
88 ingredient2.AddHealth(percent);
89 }

References Type.

◆ Do() [175/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 71 of file repairwithrags.c.

72 {
73 ItemBase item_ingredient = ingredients[0];
74 float mHealth = item_ingredient.GetMaxHealth();
75 float percent = mHealth*0.2; //20% of the item's health
76 item_ingredient.AddHealth(percent);
77 }

◆ Do() [176/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 74 of file repairwithtape.c.

75 {
76 PluginRepairing module_repairing;
77 Class.CastTo(module_repairing, GetPlugin(PluginRepairing));
78 PlayerBase playerPB;
79 Class.CastTo(playerPB, player);
80 ItemBase ingredient1;
81 Class.CastTo(ingredient1, ingredients[0]);
82 ItemBase ingredient2;
83 Class.CastTo(ingredient2, ingredients[1]);
84 module_repairing.Repair(playerPB, ingredient1,ingredient2,m_Specialty);
85 }

References Class::CastTo(), and GetPlugin().

◆ Do() [177/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 68 of file sawoffb95.c.

69 {
70 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[0], "SawedoffB95", player));
71 }

◆ Do() [178/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 68 of file sawofffamas.c.

69 {
70 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[0], "SawedOffFAMAS", player));
71 }

◆ Do() [179/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 82 of file sawoffizh18.c.

83 {
84 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[0], "SawedoffIzh18", player));
85 }

◆ Do() [180/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 82 of file sawoffizh18shotgun.c.

83 {
84 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[0], "SawedoffIzh18Shotgun", player));
85 }

◆ Do() [181/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 70 of file sawoffmagnum.c.

71 {
72 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[0], "SawedoffMagnum", player));
73 }

◆ Do() [182/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 68 of file sawoffmosin.c.

69 {
70 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[0], "SawedoffMosin9130", player));
71 }

◆ Do() [183/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 70 of file sawoffmosinpainted.c.

71 {
72 ItemBase ingredient = ingredients[0];
73 string color = ingredient.ConfigGetString("color");
74 string classname = "SawedoffMosin9130_" + color;
75 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[0], classname, player));
76 }

◆ Do() [184/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 68 of file sawoffshotgunizh43.c.

69 {
70 MiscGameplayFunctions.TurnItemIntoItemEx(player, new TurnItemIntoItemLambda(ingredients[0], "SawedoffIzh43Shotgun", player));
71 }

◆ Do() [185/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 92 of file sawwoodenlog.c.

93 {
94 }

◆ Do() [186/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 104 of file sharpenbroom.c.

105 {
106 ItemBase broom = ingredients[0];
107
108 for (int i=0; i < results.Count(); i++)
109 {
110 ItemBase item_result;
111 Class.CastTo(item_result, results.Get(i));
112
113 MiscGameplayFunctions.TransferItemProperties(broom, item_result);
114 }
115
116 super.Do( ingredients, player, results, specialty_weight);
117 }

References Class::CastTo().

◆ Do() [187/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 86 of file sharpenlongstick.c.

87 {
88 ItemBase ingredient = ingredients[0];
89
90 ItemBase item_result = results[0];
91
92 MiscGameplayFunctions.TransferItemProperties(ingredient, item_result, false, false, false);
93 }

◆ Do() [188/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 72 of file sharpenmelee.c.

73 {
74 PluginRepairing module_repairing;
75 Class.CastTo(module_repairing, GetPlugin(PluginRepairing));
76 PlayerBase playerPB;
77 Class.CastTo(playerPB, player);
78 ItemBase ingredient1;
79 Class.CastTo(ingredient1, ingredients[0]);
80 ItemBase ingredient2;
81 Class.CastTo(ingredient2, ingredients[1]);
82 module_repairing.Repair(playerPB, ingredient1,ingredient2,m_Specialty);
83 }

References Class::CastTo(), and GetPlugin().

◆ Do() [189/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 86 of file sharpenstick.c.

87 {
88 ItemBase ingredient = ingredients[0];
89
90 for (int i=0; i < results.Count(); i++)
91 {
92 ItemBase item_result;
93 Class.CastTo(item_result, results.Get(i));
94
95 MiscGameplayFunctions.TransferItemProperties(ingredient, item_result);
96 }
97
98 super.Do( ingredients, player, results, specialty_weight);;
99 }

References Class::CastTo().

◆ Do() [190/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 117 of file splitbroom.c.

118 {
119 ItemBase broom = ingredients[0];
120
121 for (int i=0; i < results.Count(); i++)
122 {
123 ItemBase item_result;
124 Class.CastTo(item_result, results.Get(i));
125
126 MiscGameplayFunctions.TransferItemProperties(broom, item_result);
127 }
128
129 super.Do( ingredients, player, results, specialty_weight);
130 }

References Class::CastTo().

◆ Do() [191/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 72 of file splitfirewood.c.

73 {
74 Debug.Log("Recipe Do method called","recipes");
75 }

References Debug::Log().

◆ Do() [192/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 101 of file splitlongwoodenstick.c.

102 {
103
104 }

◆ Do() [193/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 89 of file splitstones.c.

90 {
91 Debug.Log("Recipe Do method called","recipes");
92 }

References Debug::Log().

◆ Do() [194/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 80 of file test.c.

81 {
82
83 }

◆ Do() [195/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 68 of file upgradetorchwithlard.c.

69 {
70 FlammableBase item = Torch.Cast(ingredients[1]);
71 Lard lard = Lard.Cast(ingredients[0]);
72 item.Upgrade(lard);
73 }
void Upgrade(ItemBase source)
Definition: torch.c:285

References FlammableBase::Upgrade().

◆ Do() [196/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 75 of file upgradetorchwithliquidfuel.c.

76 {
77 ItemBase vessel = ItemBase.Cast(ingredients[0]);
78 FlammableBase item = Torch.Cast(ingredients[1]);
79
80 //torch.ConsumeRag();
81
82 if (item && vessel)
83 {
84 item.Upgrade(vessel);
85 }
86 }

References FlammableBase::Upgrade().

◆ Do() [197/197]

override void RecipeBase::Do ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase results,
float  specialty_weight 
)
inlineprivate

Definition at line 67 of file writeletter.c.

68 {
69 Debug.Log("Recipe Do method called","recipes");
70 }

References Debug::Log().

◆ GetAllItems()

void RecipeBase::GetAllItems ( array< string items)
inlineprivate

Definition at line 586 of file recipebase.c.

587 {
588 for(int i = 0; i < MAX_NUMBER_OF_INGREDIENTS; i++)
589 {
591
592 for(int x = 0; x < ptr.Count(); x++)
593 {
594 items.Insert( ptr.Get(x) );
595 }
596 }
597 }

References m_Ingredients, MAX_NUMBER_OF_INGREDIENTS, and x.

◆ GetID()

int RecipeBase::GetID ( )
inlineprivate

Definition at line 575 of file recipebase.c.

576 {
577 return m_ID;
578 }

References m_ID.

Referenced by PluginRecipesManagerBase::GetValidRecipesProper(), and PluginRecipesManagerBase::WalkRecipes().

◆ GetIngredientMaskForItem()

int RecipeBase::GetIngredientMaskForItem ( string  item)
inlineprivate

returns a mask which marks ingredient positions for a given item in this recipe(for example mask of value 3 [....000011] means this item is both ingredient 1 and 2 in this recipe[from right to left])

Definition at line 613 of file recipebase.c.

614 {
615 int mask = 0;
616
617 for(int i = 0; i < MAX_NUMBER_OF_INGREDIENTS; i++)
618 {
620
621 for(int x = 0; x < ptr.Count(); x++)
622 {
623 if( ptr.Get(x) == item )
624 {
625 mask = ((int)Math.Pow(2, i)) | mask;
626 }
627 }
628 }
629 return mask;
630 }
class RecipeCacheData int
static proto float Pow(float v, float power)
Return power of v ^ power.

References int, m_Ingredients, MAX_NUMBER_OF_INGREDIENTS, Math::Pow(), and x.

◆ GetLengthInSecs()

float RecipeBase::GetLengthInSecs ( )
inlineprivate

Definition at line 75 of file recipebase.c.

76 {
78 }
float m_AnimationLength
Definition: recipebase.c:21
const float CRAFTING_TIME_UNIT_SIZE
Definition: constants.c:568

References CRAFTING_TIME_UNIT_SIZE, and m_AnimationLength.

◆ GetName()

string RecipeBase::GetName ( )
inlineprivate

Definition at line 159 of file recipebase.c.

160 {
161 return m_Name;
162 }

References m_Name.

◆ GetSpecialty()

float RecipeBase::GetSpecialty ( )
inlineprivate

Definition at line 80 of file recipebase.c.

81 {
82 return m_Specialty;
83 }

References m_Specialty.

◆ Init() [1/198]

void RecipeBase::Init ( )
private

Referenced by RecipeBase().

◆ Init() [2/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file attachholster.c.

4 {
5 m_Name = "#STR_AttachHolster0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"PlateCarrierBlank");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"CarrierHolsterSolo");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("PlateCarrierHolster");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }
int m_ResultToInventory[MAXIMUM_RESULTS]
Definition: recipebase.c:44
bool m_IsInstaRecipe
Definition: recipebase.c:23
void AddResult(string item)
Definition: recipebase.c:153
void InsertIngredient(int index, string ingredient)
Definition: recipebase.c:133
int m_ResultInheritsColor[MAXIMUM_RESULTS]
Definition: recipebase.c:46

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [3/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file attachholsterpouch.c.

4 {
5 m_Name = "#STR_AttachHolsterPouch0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"PlateCarrierPouches");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"CarrierHolsterSolo");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("PlateCarrierComplete");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [4/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file attachpouch.c.

4 {
5 m_Name = "#STR_AttachPouch0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"PlateCarrierBlank");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"CarrierPouches");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("PlateCarrierPouches");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [5/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file attachpouchesholster.c.

4 {
5 m_Name = "#STR_AttachPouchesHolster0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"PlateCarrierHolster");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"CarrierPouches");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("PlateCarrierComplete");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [6/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file bloodtest.c.

4 {
5 m_Name = "#test_blood";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"BloodTestKit");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"BloodSyringe");//you can insert multiple ingredients this way
37 InsertIngredient(1,"BloodBagFull");//you can insert multiple ingredients this way
38 InsertIngredient(1,"BloodBagIV");//you can insert multiple ingredients this way
39
40 m_IngredientAddHealth[1] = 0;// 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
43 m_IngredientDestroy[1] = false;// false = do nothing
44 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
45 //----------------------------------------------------------------------------------------------------------------------
46
47 //result1
48 //AddResult("");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58 }

References InsertIngredient(), and m_Name.

◆ Init() [7/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file cleanrags.c.

4 {
5 m_Name = "#clean";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Rag");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Pot");//you can insert multiple ingredients this way
37 InsertIngredient(1,"CanisterGasoline");//you can insert multiple ingredients this way
38 InsertIngredient(1,"Canteen");//you can insert multiple ingredients this way
39 InsertIngredient(1,"WaterBottle");//you can insert multiple ingredients this way
40 InsertIngredient(1,"Vodka");//you can insert multiple ingredients this way
41 InsertIngredient(1,"WaterPouch_ColorBase");//you can insert multiple ingredients this way
42 InsertIngredient(1,"Barrel_ColorBase");//you can insert multiple ingredients this way
43
44 m_IngredientAddHealth[1] = 0;// 0 = do nothing
45 m_IngredientSetHealth[1] = -1; // -1 = do nothing
46 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
47 m_IngredientDestroy[1] = false;// false = do nothing
48 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
49 //----------------------------------------------------------------------------------------------------------------------
50
51 //result1
52 //AddResult("");//add results here
53
54 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
55 m_ResultSetQuantity[0] = -1;//-1 = do nothing
56 m_ResultSetHealth[0] = -1;//-1 = do nothing
57 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
58 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
59 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
60 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
61 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
62 }

References InsertIngredient(), and m_Name.

◆ Init() [8/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file cleanweapon.c.

4 {
5 m_Name = "#repair";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = 1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"WeaponCleaningKit");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"DefaultWeapon");
37 InsertIngredient(1,"DefaultMagazine");
38 InsertIngredient(1,"ItemSuppressor");
39
40 m_IngredientAddHealth[1] = 0;// 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
43 m_IngredientDestroy[1] = false;// false = do nothing
44 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
45
46 //----------------------------------------------------------------------------------------------------------------------
47
48 //result1
49 //AddResult("");//add results here
50
51 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
52 m_ResultSetQuantity[0] = -1;//-1 = do nothing
53 m_ResultSetHealth[0] = -1;//-1 = do nothing
54 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
55 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
56 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
57 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
58 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
59
60 //----------------------------------------------------------------------------------------------------------------------
61 }

References InsertIngredient(), and m_Name.

◆ Init() [9/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftarmbandflag.c.

4 {
5 m_Name = "#STR_craftarmband0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.8;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
15
20
21
22 //ingredient 1
23 InsertIngredient(0,"Flag_Base");//you can insert multiple ingredients this way
24
26 m_IngredientSetHealth[0] = -1; // -1 = do nothing
29 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
30
31 //ingredient 2
32 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
33 InsertIngredient(1,"KukriKnife");
34 InsertIngredient(1,"FangeKnife");
35 InsertIngredient(1,"Hacksaw");
36 InsertIngredient(1,"HandSaw");
37 InsertIngredient(1,"KitchenKnife");
38 InsertIngredient(1,"SteakKnife");
39 InsertIngredient(1,"HayHook");
40 InsertIngredient(1,"StoneKnife");
41 InsertIngredient(1,"Cleaver");
42 InsertIngredient(1,"CombatKnife");
43 InsertIngredient(1,"HuntingKnife");
44 InsertIngredient(1,"Machete");
45 InsertIngredient(1,"CrudeMachete");
46 InsertIngredient(1,"OrientalMachete");
47 InsertIngredient(1,"Screwdriver");
48 InsertIngredient(1,"Crowbar");
49 InsertIngredient(1,"Pickaxe");
50 InsertIngredient(1,"WoodAxe");
51 InsertIngredient(1,"Hatchet");
52 InsertIngredient(1,"FirefighterAxe");
53 InsertIngredient(1,"Sword");
54 InsertIngredient(1,"AK_Bayonet");
55 InsertIngredient(1,"M9A1_Bayonet");
56 InsertIngredient(1,"Mosin_Bayonet");
57 InsertIngredient(1,"SKS_Bayonet");
58 InsertIngredient(1,"BoneKnife");
59
61 m_IngredientSetHealth[1] = -1; // -1 = do nothing
64 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
65
66 // crafting multiple results
67 //result1
68 AddResult("Armband_");
69 m_ResultSetFullQuantity[0] = false;
70 m_ResultSetQuantity[0] = -1;
71 m_ResultSetHealth[0] = -1;
72 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
73 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
74 m_ResultToInventory[0] = -2;
75 m_ResultUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this result
76 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
77
78 //result2
79 AddResult("Armband_");//single result
80 m_ResultSetFullQuantity[1] = false;
81 m_ResultSetQuantity[1] = -1;
82 m_ResultSetHealth[1] = -1;
83 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
84 m_ResultInheritsColor[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
85 m_ResultToInventory[1] = -2;
86 m_ResultUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this result
87 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
88
89 //result3
90 AddResult("Armband_");//single result
91 m_ResultSetFullQuantity[2] = false;
92 m_ResultSetQuantity[2] = -1;
93 m_ResultSetHealth[2] = -1;
94 m_ResultInheritsHealth[2] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
95 m_ResultInheritsColor[2] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
96 m_ResultToInventory[2] = -2;
97 m_ResultUseSoftSkills[2] = true;// set 'true' to allow modification of the values by softskills on this result
98 m_ResultReplacesIngredient[2] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
99
100 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [10/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftarmbandrag.c.

4 {
5 m_Name = "#STR_craftarmband0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
15
20
21
22 //ingredient 1
23 InsertIngredient(0,"Rag");//you can insert multiple ingredients this way
24
26 m_IngredientSetHealth[0] = -1; // -1 = do nothing
29 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
30
31 //ingredient 2
32 InsertIngredient(1,"SewingKit");//you can insert multiple ingredients this way
33
35 m_IngredientSetHealth[1] = -1; // -1 = do nothing
38 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
39
40 // crafting multiple results
41 //AddResult("CombatKnife");//additional results, must be processed individually in Do method (as "results" parameter)
42
43
44 AddResult("Armband_White");//single result
45
47 m_ResultSetQuantity[0] = -1;
48 m_ResultSetHealth[0] = -1;
49 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
50 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
51 m_ResultToInventory[0] = -2;
52 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
53 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
54 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [11/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftarmbandraincoat.c.

4 {
5 m_Name = "#STR_craftarmband0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.8;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
15
20
21
22 //ingredient 1
23 InsertIngredient(0,"Raincoat_ColorBase");//you can insert multiple ingredients this way
24
26 m_IngredientSetHealth[0] = -1; // -1 = do nothing
29 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
30
31 //ingredient 2
32 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
33 InsertIngredient(1,"KukriKnife");
34 InsertIngredient(1,"FangeKnife");
35 InsertIngredient(1,"Hacksaw");
36 InsertIngredient(1,"HandSaw");
37 InsertIngredient(1,"KitchenKnife");
38 InsertIngredient(1,"SteakKnife");
39 InsertIngredient(1,"HayHook");
40 InsertIngredient(1,"StoneKnife");
41 InsertIngredient(1,"Cleaver");
42 InsertIngredient(1,"CombatKnife");
43 InsertIngredient(1,"HuntingKnife");
44 InsertIngredient(1,"Machete");
45 InsertIngredient(1,"CrudeMachete");
46 InsertIngredient(1,"OrientalMachete");
47 InsertIngredient(1,"Screwdriver");
48 InsertIngredient(1,"Crowbar");
49 InsertIngredient(1,"Pickaxe");
50 InsertIngredient(1,"WoodAxe");
51 InsertIngredient(1,"Hatchet");
52 InsertIngredient(1,"FirefighterAxe");
53 InsertIngredient(1,"Sword");
54 InsertIngredient(1,"AK_Bayonet");
55 InsertIngredient(1,"M9A1_Bayonet");
56 InsertIngredient(1,"Mosin_Bayonet");
57 InsertIngredient(1,"SKS_Bayonet");
58 InsertIngredient(1,"BoneKnife");
59
61 m_IngredientSetHealth[1] = -1; // -1 = do nothing
64 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
65
66 // crafting multiple results
67 //result1
68 AddResult("Armband_");
69 m_ResultSetFullQuantity[0] = false;
70 m_ResultSetQuantity[0] = -1;
71 m_ResultSetHealth[0] = -1;
72 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
73 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
74 m_ResultToInventory[0] = -2;
75 m_ResultUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this result
76 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
77
78 //result2
79 AddResult("Armband_");//single result
80 m_ResultSetFullQuantity[1] = false;
81 m_ResultSetQuantity[1] = -1;
82 m_ResultSetHealth[1] = -1;
83 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
84 m_ResultInheritsColor[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
85 m_ResultToInventory[1] = -2;
86 m_ResultUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this result
87 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
88
89 //result3
90 AddResult("Armband_");//single result
91 m_ResultSetFullQuantity[2] = false;
92 m_ResultSetQuantity[2] = -1;
93 m_ResultSetHealth[2] = -1;
94 m_ResultInheritsHealth[2] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
95 m_ResultInheritsColor[2] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
96 m_ResultToInventory[2] = -2;
97 m_ResultUseSoftSkills[2] = true;// set 'true' to allow modification of the values by softskills on this result
98 m_ResultReplacesIngredient[2] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
99
100 //result4
101 AddResult("Armband_");//single result
102 m_ResultSetFullQuantity[3] = false;
103 m_ResultSetQuantity[3] = -1;
104 m_ResultSetHealth[3] = -1;
105 m_ResultInheritsHealth[3] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
106 m_ResultInheritsColor[3] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
107 m_ResultToInventory[3] = -2;
108 m_ResultUseSoftSkills[3] = true;// set 'true' to allow modification of the values by softskills on this result
109 m_ResultReplacesIngredient[3] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
110
111 //result5
112 AddResult("Armband_");//single result
113 m_ResultSetFullQuantity[4] = false;
114 m_ResultSetQuantity[4] = -1;
115 m_ResultSetHealth[4] = -1;
116 m_ResultInheritsHealth[4] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
117 m_ResultInheritsColor[4] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
118 m_ResultToInventory[4] = -2;
119 m_ResultUseSoftSkills[4] = true;// set 'true' to allow modification of the values by softskills on this result
120 m_ResultReplacesIngredient[4] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
121 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [12/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftarrow.c.

4 {
5 m_Name = "#STR_CraftArrow0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
11 m_MinDamageIngredient[0] = -1;//-1 = disable check
12 m_MaxDamageIngredient[0] = 3;//-1 = disable check
13
14 m_MinQuantityIngredient[0] = 1;//-1 = disable check
15 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
16
17 m_MinDamageIngredient[1] = -1;//-1 = disable check
18 m_MaxDamageIngredient[1] = 3;//-1 = disable check
19
20 m_MinQuantityIngredient[1] = 1;//-1 = disable check
21 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
22 //----------------------------------------------------------------------------------------------------------------------
23
24 //INGREDIENTS
25 //ingredient 1
26 InsertIngredient(0,"ChickenFeather");//you can insert multiple ingredients this way
27
28 m_IngredientAddHealth[0] = 0;// 0 = do nothing
29 m_IngredientSetHealth[0] = -1; // -1 = do nothing
30 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
31 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
32 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
33
34 //ingredient 2
35 InsertIngredient(1,"Ammo_SharpStick");//you can insert multiple ingredients this way
36
37 m_IngredientAddHealth[1] = 0;// 0 = do nothing
38 m_IngredientSetHealth[1] = -1; // -1 = do nothing
39 m_IngredientAddQuantity[1] = -1;// 0 = do nothing
40 m_IngredientDestroy[1] = false;// false = do nothing
41 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
42 //----------------------------------------------------------------------------------------------------------------------
43
44 //result1
45 AddResult("Ammo_ArrowPrimitive");//add results here
46
47 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
48 m_ResultSetQuantity[0] = 1;//-1 = do nothing
49 m_ResultSetHealth[0] = -1;//-1 = do nothing
50 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
51 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
52 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
53 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
54 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
55 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [13/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftarrowbone.c.

4 {
5 m_Name = "#STR_CraftArrowBone0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Ammo_ArrowPrimitive");//you can insert multiple ingredients this way
28 //TODO check whether ammho has "quantity" that can be read here
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Bone");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = -1;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("Ammo_ArrowBoned");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = 1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [14/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftbait.c.

4 {
5 m_Name = "#STR_CraftBait0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Worm");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Hook");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("Bait");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [15/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftbaseballbatbarbed.c.

4 {
5 m_Name = "#STR_CraftBaseBallBatBarbed0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
15
20
21
22 //ingredient 1
23 InsertIngredient(0,"BarbedWire");//you can insert multiple ingredients this way
24
26 m_IngredientSetHealth[0] = -1; // -1 = do nothing
28 m_IngredientDestroy[0] = true;
29 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
30
31 //ingredient 2
32 InsertIngredient(1,"BaseballBat");//you can insert multiple ingredients this way
33
35 m_IngredientSetHealth[1] = -1; // -1 = do nothing
37 m_IngredientDestroy[1] = true;
38 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
39
40 // crafting multiple results
41 //AddResult("CombatKnife");//additional results, must be processed individually in Do method (as "results" parameter)
42
43
44 AddResult("BarbedBaseballBat");//single result
46 m_ResultSetQuantity[0] = -1;
47 m_ResultSetHealth[0] = -1;
48 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
49 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
50 m_ResultToInventory[0] = 1; //(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
51 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
52 m_ResultReplacesIngredient[0] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
53 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [16/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftbaseballbatnailed.c.

4 {
5 m_Name = "#STR_CraftBaseBallBatNailed0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
15
20
21
22 //ingredient 1
23 InsertIngredient(0,"Nail");//you can insert multiple ingredients this way
24
26 m_IngredientSetHealth[0] = -1; // -1 = do nothing
28 m_IngredientDestroy[0] = false;
29 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
30
31 //ingredient 2
32 InsertIngredient(1,"BaseballBat");//you can insert multiple ingredients this way
33
35 m_IngredientSetHealth[1] = -1; // -1 = do nothing
37 m_IngredientDestroy[1] = true;
38 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
39
40 // crafting multiple results
41 //AddResult("CombatKnife");//additional results, must be processed individually in Do method (as "results" parameter)
42
43
44 AddResult("NailedBaseballBat");//single result
46 m_ResultSetQuantity[0] = -1;
47 m_ResultSetHealth[0] = -1;
48 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
49 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
50 m_ResultToInventory[0] = 1; //(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
51 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
52 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
53 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [17/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftbloodbagiv.c.

4 {
5 m_Name = "#STR_CraftBloodBagIV0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"StartKitIV");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"BloodBagFull");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("BloodBagIV");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [18/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftbonebait.c.

4 {
5 m_Name = "#STR_CraftBoneBait0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Worm");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"BoneHook");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("BoneBait");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [19/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftbonehook.c.

4 {
5 m_Name = "#STR_CraftBoneHook0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Bone");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -12;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69 //----------------------------------------------------------------------------------------------------------------------
70
71 //result1
72 AddResult("BoneHook");//add results here
73
74 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
75 m_ResultSetQuantity[0] = -1;//-1 = do nothing
76 m_ResultSetHealth[0] = -1;//-1 = do nothing
77 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
78 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
79 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
80 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
81 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
82 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [20/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftboneknife.c.

4 {
5 m_Name = "#STR_CraftBoneKnife0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Bone");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Stone");//you can insert multiple ingredients this way
37 InsertIngredient(1,"SmallStone");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
42 m_IngredientDestroy[1] = false;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 AddResult("BoneKnife");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [21/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftbow.c.

4 {
5 m_Name = "#STR_CraftBow0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Rope");//you can insert multiple ingredients this way
28 //InsertIngredient(0,"ImprovisedRope");//you can insert multiple ingredients this way
29
30 m_IngredientAddHealth[0] = 0;// 0 = do nothing
31 m_IngredientSetHealth[0] = -1; // -1 = do nothing
32 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
33 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
34 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
35
36 //ingredient 2
37 InsertIngredient(1,"LongWoodenStick");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
42 m_IngredientDestroy[1] = true;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 AddResult("QuickieBow");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [22/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftburlapstrips.c.

4 {
5 m_Name = "#STR_CraftBurlapStrips0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"BurlapSack");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -5;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69 //----------------------------------------------------------------------------------------------------------------------
70
71 //result1
72 AddResult("BurlapStrip");//add results here
73
74 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
75 m_ResultSetQuantity[0] = -1;//-1 = do nothing
76 m_ResultSetHealth[0] = -1;//-1 = do nothing
77 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
78 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
79 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
80 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
81 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
82 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [23/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftcamonetshelter.c.

4 {
5 m_Name = "#STR_CraftCamoNetShelter0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"CamoNet");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"LongWoodenStick");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("CamoNetShelter");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [24/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftcookingstand.c.

4 {
5 m_Name = "#STR_CraftCookingStand0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = -1;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 2;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = -1;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26
27 //ingredient 1
28 InsertIngredient(0,"WoodenStick");//you can insert multiple ingredients this way
29
30 m_IngredientAddHealth[0] = 0;// 0 = do nothing
31 m_IngredientSetHealth[0] = -1; // -1 = do nothing
32 m_IngredientAddQuantity[0] = -2;// 0 = do nothing
33 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
34 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
35
36 //ingredient 2
37 InsertIngredient(1,"LongWoodenStick");
38 InsertIngredient(1,"SharpWoodenStick");
39
40 m_IngredientAddHealth[1] = 0;// 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
43 m_IngredientDestroy[1] = true;// false = do nothing
44 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
45 //----------------------------------------------------------------------------------------------------------------------
46
47 //result1
48 AddResult("CookingStand");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [25/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftcourierbag.c.

4 {
5 m_Name = "#STR_CraftCourierBag0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"BurlapSack");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Rope");//you can insert multiple ingredients this way
37 //InsertIngredient(1,"ImprovisedRope");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
42 m_IngredientDestroy[1] = true;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 AddResult("CourierBag");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [26/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftfencekit.c.

4 {
5 //m_Name = "#STR_CraftHandDrillKit0";
6 m_Name = "#STR_craftfencebase0";
7 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
8 m_AnimationLength = 0.5;//animation length in relative time units
9 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
10
11
12 //conditions
13 m_MinDamageIngredient[0] = -1;//-1 = disable check
14 m_MaxDamageIngredient[0] = 3;//-1 = disable check
15
16 m_MinQuantityIngredient[0] = 1;//-1 = disable check
17 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
18
19 m_MinDamageIngredient[1] = -1;//-1 = disable check
20 m_MaxDamageIngredient[1] = 3;//-1 = disable check
21
22 m_MinQuantityIngredient[1] = 2;//-1 = disable check
23 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
24 //----------------------------------------------------------------------------------------------------------------------
25
26 //INGREDIENTS
27 //ingredient 1
28 InsertIngredient(0,"Rope");//you can insert multiple ingredients this way
29
30 m_IngredientAddHealth[0] = 0;// 0 = do nothing
31 m_IngredientSetHealth[0] = -1; // -1 = do nothing
32 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
33 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
34 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
35
36 //ingredient 2
37 InsertIngredient(1,"WoodenStick");//you can insert multiple ingredients this way
38 InsertIngredient(1,"Ammo_SharpStick");//you can insert multiple ingredients this way
39
40 m_IngredientAddHealth[1] = 0;// 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = -2;// 0 = do nothing
43 m_IngredientDestroy[1] = false;// false = do nothing
44 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
45 //----------------------------------------------------------------------------------------------------------------------
46
47 //result1
48 AddResult("FenceKit");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [27/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftfireplace.c.

4 {
5 m_Name = "#STR_CraftFireplace0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"WoodenStick");//you can insert multiple ingredients this way
28 InsertIngredient(0,"Firewood");//you can insert multiple ingredients this way
29 InsertIngredient(0,"Rag");//you can insert multiple ingredients this way
30 InsertIngredient(0,"BandageDressing");//you can insert multiple ingredients this way
31 InsertIngredient(0,"Paper");//you can insert multiple ingredients this way
32 InsertIngredient(0,"ItemBook");//you can insert multiple ingredients this way
33 InsertIngredient(0,"Bark_Birch");//you can insert multiple ingredients this way
34 InsertIngredient(0,"Bark_Oak");//you can insert multiple ingredients this way
35
36 m_IngredientAddHealth[0] = 0;// 0 = do nothing
37 m_IngredientSetHealth[0] = -1; // -1 = do nothing
38 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
39 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
40 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
41
42 //ingredient 2
43 InsertIngredient(1,"WoodenStick");//you can insert multiple ingredients this way
44 InsertIngredient(1,"Firewood");//you can insert multiple ingredients this way
45 InsertIngredient(1,"Rag");//you can insert multiple ingredients this way
46 InsertIngredient(1,"BandageDressing");//you can insert multiple ingredients this way
47 InsertIngredient(1,"Paper");//you can insert multiple ingredients this way
48 InsertIngredient(1,"GiftWrapPaper");//you can insert multiple ingredients this way
49 InsertIngredient(1,"ItemBook");//you can insert multiple ingredients this way
50 InsertIngredient(1,"Bark_Birch");//you can insert multiple ingredients this way
51 InsertIngredient(1,"Bark_Oak");//you can insert multiple ingredients this way
52
53 m_IngredientAddHealth[1] = 0;// 0 = do nothing
54 m_IngredientSetHealth[1] = -1; // -1 = do nothing
55 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
56 m_IngredientDestroy[1] = false;// false = do nothing
57 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
58 //----------------------------------------------------------------------------------------------------------------------
59
60 //result1
61 AddResult("Fireplace");//add results here
62
63 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
64 m_ResultSetQuantity[0] = -1;//-1 = do nothing
65 m_ResultSetHealth[0] = -1;//-1 = do nothing
66 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
67 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
68 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
69 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
70 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
71 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [28/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftfishingrod.c.

4 {
5 m_Name = "#STR_CraftFishingRod0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Rope");//you can insert multiple ingredients this way
28 //InsertIngredient(0,"ImprovisedRope");//you can insert multiple ingredients this way
29
30 m_IngredientAddHealth[0] = 0;// 0 = do nothing
31 m_IngredientSetHealth[0] = -1; // -1 = do nothing
32 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
33 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
34 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
35
36 //ingredient 2
37 InsertIngredient(1,"LongWoodenStick");//you can insert multiple ingredients this way
38 InsertIngredient(1,"SharpWoodenStick");//you can insert multiple ingredients this way
39
40 m_IngredientAddHealth[1] = 0;// 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
43 m_IngredientDestroy[1] = true;// false = do nothing
44 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
45 //----------------------------------------------------------------------------------------------------------------------
46
47 //result1
48 AddResult("ImprovisedFishingRod");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [29/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftfishnettrap.c.

4 {
5 m_Name = "#STR_CraftFishNetTrap0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Netting");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"MetalWire");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = -1;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("FishNetTrap");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [30/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftgasmask_filter_improvised.c.

4 {
5 m_Name = "#STR_CraftImprovisedFilter";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"WaterBottle");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"NioshFaceMask");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("GasMask_Filter_Improvised");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = 0;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [31/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftghillieattachment.c.

4 {
5 m_Name = "#STR_CraftGhillieAttachment0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 2;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Netting");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"BurlapStrip");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = -2;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("GhillieAtt_Tan");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [32/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftghilliebushrag.c.

4 {
5 m_Name = "#STR_CraftGhillieBushrag0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 2;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 4;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Netting");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -2;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"BurlapStrip");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = -4;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("GhillieBushrag_Tan");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [33/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftghilliehood.c.

4 {
5 m_Name = "#STR_CraftGhillieHood0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 2;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Netting");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"BurlapStrip");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = -2;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("GhillieHood_Tan");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [34/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftghilliesuit.c.

4 {
5 m_Name = "#STR_CraftGhillieSuit0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 4;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 10;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Netting");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -4;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"BurlapStrip");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = -10;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("GhillieSuit_Tan");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [35/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftghillietop.c.

4 {
5 m_Name = "#STR_CraftGhillieTop0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 3;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 6;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Netting");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -3;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"BurlapStrip");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = -6;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("GhillieTop_Tan");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [36/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftgorkahelmetcomplete.c.

4 {
5 m_Name = "#STR_CraftGorkaHelmetComplete0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"GorkaHelmet");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GorkaHelmetVisor");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("GorkaHelmetComplete_");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [37/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftgutsrope.c.

4 {
5 m_Name = "#STR_CraftGutsRope0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 250;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Guts");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"KitchenKnife");
40 InsertIngredient(1,"SteakKnife");
41 InsertIngredient(1,"HayHook");
42 InsertIngredient(1,"StoneKnife");
43 InsertIngredient(1,"Cleaver");
44 InsertIngredient(1,"CombatKnife");
45 InsertIngredient(1,"HuntingKnife");
46 InsertIngredient(1,"Machete");
47 InsertIngredient(1,"CrudeMachete");
48 InsertIngredient(1,"OrientalMachete");
49 InsertIngredient(1,"Pickaxe");
50 InsertIngredient(1,"WoodAxe");
51 InsertIngredient(1,"Hatchet");
52 InsertIngredient(1,"FirefighterAxe");
53 InsertIngredient(1,"Sword");
54 InsertIngredient(1,"AK_Bayonet");
55 InsertIngredient(1,"M9A1_Bayonet");
56 InsertIngredient(1,"Mosin_Bayonet");
57 InsertIngredient(1,"SKS_Bayonet");
58 InsertIngredient(1,"BoneKnife");
59
60 m_IngredientAddHealth[1] = -5;// 0 = do nothing
61 m_IngredientSetHealth[1] = -1; // -1 = do nothing
62 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
63 m_IngredientDestroy[1] = false;// false = do nothing
64 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
65 //----------------------------------------------------------------------------------------------------------------------
66
67 //result1
68 AddResult("Rope");//add results here
69
70 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
71 m_ResultSetQuantity[0] = -1;//-1 = do nothing
72 m_ResultSetHealth[0] = -1;//-1 = do nothing
73 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
74 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
75 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
76 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
77 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
78 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [38/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file crafthanddrillkit.c.

4 {
5 m_Name = "#STR_CraftHandDrillKit0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Bark_Oak");//you can insert multiple ingredients this way
28 InsertIngredient(0,"Bark_Birch");//you can insert multiple ingredients this way
29
30 m_IngredientAddHealth[0] = 0;// 0 = do nothing
31 m_IngredientSetHealth[0] = -1; // -1 = do nothing
32 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
33 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
34 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
35
36 //ingredient 2
37 InsertIngredient(1,"WoodenStick");//you can insert multiple ingredients this way
38 InsertIngredient(1,"Ammo_SharpStick");//you can insert multiple ingredients this way
39
40 m_IngredientAddHealth[1] = 0;// 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = -1;// 0 = do nothing
43 m_IngredientDestroy[1] = false;// false = do nothing
44 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
45 //----------------------------------------------------------------------------------------------------------------------
46
47 //result1
48 AddResult("HandDrillKit");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [39/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftimprovisedbag.c.

4 {
5 m_Name = "#STR_CraftImprovisedBag0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 3;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"WoodenStick");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -3;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"CourierBag");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("ImprovisedBag");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [40/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftimprovisedexplosive.c.

4 {
5 m_Name = "#STR_CraftImprovisedExplosive";
6
7 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
8 m_AnimationLength = 2;//animation length in relative time units
9 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
10
11
12 //conditions
13 m_MinDamageIngredient[0] = -1;//-1 = disable check
14 m_MaxDamageIngredient[0] = 3;//-1 = disable check
15
16 m_MinQuantityIngredient[0] = 1;//-1 = disable check
17 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
18
19 m_MinDamageIngredient[1] = -1;//-1 = disable check
20 m_MaxDamageIngredient[1] = 3;//-1 = disable check
21
22 m_MinQuantityIngredient[1] = -1;//-1 = disable check
23 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
24 //----------------------------------------------------------------------------------------------------------------------
25
26 //INGREDIENTS
27 //ingredient 1
28 InsertIngredient(0,"SmallProtectorCase");//you can insert multiple ingredients this way
29
30 m_IngredientAddHealth[0] = 0;// 0 = do nothing
31 m_IngredientSetHealth[0] = -1; // -1 = do nothing
32 m_IngredientAddQuantity[0] = -3;// 0 = do nothing
33 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
34 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
35
36 //ingredient 2
37 InsertIngredient(1,"ElectronicRepairKit");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
42 m_IngredientDestroy[1] = true;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 AddResult("ImprovisedExplosive");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [41/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftimprovisedleatherbag.c.

4 {
5 m_Name = "#STR_CraftImprovisedLeatherBag0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 3;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"WoodenStick");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -3;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"FurCourierBag");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("FurImprovisedBag");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [42/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftleathercourierbag.c.

4 {
5 m_Name = "#STR_CraftLeatherCourierBag0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"WildboarPelt");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Rope");//you can insert multiple ingredients this way
37 //InsertIngredient(1,"ImprovisedRope");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
42 m_IngredientDestroy[1] = true;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 AddResult("FurCourierBag");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [43/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftleathersack.c.

4 {
5 m_Name = "#STR_CraftLeatherSack0";//"CRAFT LEATHER SACK";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
11 m_MinDamageIngredient[0] = -1;//-1 = disable check
12 m_MaxDamageIngredient[0] = 3;//-1 = disable check
13
14 m_MinQuantityIngredient[0] = -1;//-1 = disable check
15 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
16
17 m_MinDamageIngredient[1] = -1;//-1 = disable check
18 m_MaxDamageIngredient[1] = 3;//-1 = disable check
19
20 m_MinQuantityIngredient[1] = -1;//-1 = disable check
21 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
22 //----------------------------------------------------------------------------------------------------------------------
23
24 //INGREDIENTS
25 //ingredient 1
26 InsertIngredient(0,"TannedLeather");//you can insert multiple ingredients this way
27 m_IngredientAddHealth[0] = 0;// 0 = do nothing
28 m_IngredientSetHealth[0] = -1; // -1 = do nothing
29 m_IngredientAddQuantity[0] = -2;// 0 = do nothing
30 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
31 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
32
33 //ingredient 2
34 InsertIngredient(1,"LeatherSewingKit");//you can insert multiple ingredients this way
35
36 m_IngredientAddHealth[1] = 0;// 0 = do nothing
37 m_IngredientSetHealth[1] = -1; // -1 = do nothing
38 m_IngredientAddQuantity[1] = -10;// 0 = do nothing
39 m_IngredientDestroy[1] = false;// false = do nothing
40 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
41 //----------------------------------------------------------------------------------------------------------------------
42
43 //result1
44 AddResult("LeatherSack_Brown");//add results here
45
46 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
47 m_ResultSetQuantity[0] = -1;//-1 = do nothing
48 m_ResultSetHealth[0] = -1;//-1 = do nothing
49 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
50 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
51 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
52 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
53 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
54 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [44/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftlongtorch.c.

4 {
5 m_Name = "#STR_CraftTorch0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Rag");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"LongWoodenStick");//you can insert multiple ingredients this way
37 InsertIngredient(1,"SharpWoodenStick");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = -1;// 0 = do nothing
42 m_IngredientDestroy[1] = false;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 AddResult("LongTorch");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [45/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftmetalwire.c.

4 {
5 m_Name = "#STR_craftMetalWire";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10 m_AnywhereInInventory = false;//is this recipe valid even when neither of the items is in hands
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"BarbedWire");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Pliers");
37
38 m_IngredientAddHealth[1] = -0.5;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("MetalWire");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = 1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56
57 //----------------------------------------------------------------------------------------------------------------------
58 }
bool m_AnywhereInInventory
Definition: recipebase.c:25

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [46/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftrabbitsnare.c.

4 {
5 m_Name = "#STR_CraftRabbitSnare0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"WoodenStick");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"MetalWire");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 AddResult("RabbitSnareTrap");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [47/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftrag.c.

4 {
5 m_Name = "#STR_CraftRag0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Sickle");//you can insert multiple ingredients this way
28 InsertIngredient(0,"Hacksaw");
29 InsertIngredient(0,"HandSaw");
30 InsertIngredient(0,"KitchenKnife");
31 InsertIngredient(0,"SteakKnife");
32 InsertIngredient(0,"HayHook");
33 InsertIngredient(0,"StoneKnife");
34 InsertIngredient(0,"Cleaver");
35 InsertIngredient(0,"CombatKnife");
36 InsertIngredient(0,"HuntingKnife");
37 InsertIngredient(0,"KukriKnife");
38 InsertIngredient(0,"FangeKnife");
39 InsertIngredient(0,"Machete");
40 InsertIngredient(0,"CrudeMachete");
41 InsertIngredient(0,"OrientalMachete");
42 InsertIngredient(0,"Screwdriver");
43 InsertIngredient(0,"Crowbar");
44 InsertIngredient(0,"Pickaxe");
45 InsertIngredient(0,"WoodAxe");
46 InsertIngredient(0,"Hatchet");
47 InsertIngredient(0,"FirefighterAxe");
48 InsertIngredient(0,"Sword");
49 InsertIngredient(0,"AK_Bayonet");
50 InsertIngredient(0,"M9A1_Bayonet");
51 InsertIngredient(0,"Mosin_Bayonet");
52 InsertIngredient(0,"SKS_Bayonet");
53 InsertIngredient(0,"FarmingHoe");
54 InsertIngredient(0,"Shovel");
55 InsertIngredient(0,"FieldShovel");
56 InsertIngredient(0,"BoneKnife");
57
58 m_IngredientAddHealth[0] = -10;// 0 = do nothing
59 m_IngredientSetHealth[0] = -1; // -1 = do nothing
60 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
61 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
62 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
63
64 //ingredient 2
65
66 InsertIngredient(1,"Inventory_Base");//you can insert multiple ingredients this way
67
68 m_IngredientAddHealth[1] = 0;// 0 = do nothing
69 m_IngredientSetHealth[1] = -1; // -1 = do nothing
70 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
71 m_IngredientDestroy[1] = true;// false = do nothing
72 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
73 //----------------------------------------------------------------------------------------------------------------------
74
75 //result1
76 AddResult("Rag");//add results here
77
78 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
79 m_ResultSetQuantity[0] = -1;//-1 = do nothing
80 m_ResultSetHealth[0] = -1;//-1 = do nothing
81 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
82 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
83 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
84 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
85 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
86 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [48/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftragrope.c.

4 {
5 m_Name = "#STR_CraftRagRope0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 6;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 6;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Rag");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -6;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Rag");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = -6;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("Rope");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [49/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftsalinebagiv.c.

4 {
5 m_Name = "#STR_CraftSalineBagIV0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"StartKitIV");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"SalineBag");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("SalineBagIV");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [50/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftshelterkit.c.

4 {
5 m_Name = "#STR_CraftShelterKit0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 4;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Rope");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"WoodenStick");//you can insert multiple ingredients this way
37 InsertIngredient(1,"Ammo_SharpStick");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = -4;// 0 = do nothing
42 m_IngredientDestroy[1] = false;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 AddResult("ShelterKit");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [51/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftsmallfishtrap.c.

4 {
5 m_Name = "#STR_CraftSmallFishTrap0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"WaterBottle");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -10;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69 //----------------------------------------------------------------------------------------------------------------------
70
71 //result1
72 AddResult("SmallFishTrap");//add results here
73
74 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
75 m_ResultSetQuantity[0] = 1;//-1 = do nothing
76 m_ResultSetHealth[0] = -1;//-1 = do nothing
77 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
78 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
79 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
80 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
81 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
82 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [52/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftspearbone.c.

4 {
5 m_Name = "#STR_CraftSpear0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"BoneKnife");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"LongWoodenStick");//you can insert multiple ingredients this way
37 InsertIngredient(1,"SharpWoodenStick");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
42 m_IngredientDestroy[1] = true;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------+
45
46 //result1
47 AddResult("SpearBone");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [53/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftspearstone.c.

4 {
5 m_Name = "#STR_CraftSpear0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable che
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"StoneKnife");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"LongWoodenStick");//you can insert multiple ingredients this way
37 InsertIngredient(1,"SharpWoodenStick");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
42 m_IngredientDestroy[1] = true;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 AddResult("SpearStone");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [54/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftsplint.c.

4 {
5 m_Name = "#STR_CraftSplint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 //In the context of this recipe Check CanDo method as Rags can be stacked but bandages can't
16 m_MinQuantityIngredient[0] = 1;//-1 = disable check
17 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
18
19 m_MinDamageIngredient[1] = -1;//-1 = disable check
20 m_MaxDamageIngredient[1] = 3;//-1 = disable check
21
22 m_MinQuantityIngredient[1] = 2;//-1 = disable check
23 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
24 //----------------------------------------------------------------------------------------------------------------------
25
26 //INGREDIENTS
27 //ingredient 1
28 InsertIngredient(0,"BandageDressing");//you can insert multiple ingredients this way
29 InsertIngredient(0,"Rag");//you can insert multiple ingredients this way
30 InsertIngredient(0,"DuctTape");//you can insert multiple ingredients this way
31
32 m_IngredientAddHealth[0] = 0;// 0 = do nothing
33 m_IngredientSetHealth[0] = -1; // -1 = do nothing
34 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
35 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
36 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
37
38 //ingredient 2
39 InsertIngredient(1,"WoodenStick");//you can insert multiple ingredients this way
40
41 m_IngredientAddHealth[1] = 0;// 0 = do nothing
42 m_IngredientSetHealth[1] = -1; // -1 = do nothing
43 m_IngredientAddQuantity[1] = -2;// 0 = do nothing
44 m_IngredientDestroy[1] = false;// false = do nothing
45 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
46 //----------------------------------------------------------------------------------------------------------------------
47
48 //result1
49 AddResult("Splint");//add results here
50
51 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
52 m_ResultSetQuantity[0] = -1;//-1 = do nothing
53 m_ResultSetHealth[0] = -1;//-1 = do nothing
54 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
55 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
56 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
57 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
58 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
59 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [55/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftstoneknife.c.

4 {
5
6 m_Name = "#STR_CraftStoneKnife0";
7 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
8 m_AnimationLength = 1.5;//animation length in relative time units
9 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
10
11
12 //conditions
13 m_MinDamageIngredient[0] = -1;//-1 = disable check
14 m_MaxDamageIngredient[0] = 3;//-1 = disable check
15
16 m_MinQuantityIngredient[0] = 1;//-1 = disable check
17 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
18
19 m_MinDamageIngredient[1] = -1;//-1 = disable check
20 m_MaxDamageIngredient[1] = 3;//-1 = disable check
21
22 m_MinQuantityIngredient[1] = 1;//-1 = disable check
23 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
24 //----------------------------------------------------------------------------------------------------------------------
25
26 //INGREDIENTS
27 //ingredient 1
28 InsertIngredient(0,"SmallStone");//you can insert multiple ingredients this way
29
30 m_IngredientAddHealth[0] = 0;// 0 = do nothing
31 m_IngredientSetHealth[0] = -1; // -1 = do nothing
32 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
33 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
34 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
35
36 //ingredient 2
37 InsertIngredient(1,"SmallStone");//you can insert multiple ingredients this way
38 InsertIngredient(1,"Stone");//you can insert multiple ingredients this way
39
40
41 m_IngredientAddHealth[1] = 0;// 0 = do nothing
42 m_IngredientSetHealth[1] = -1; // -1 = do nothing
43 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
44 m_IngredientDestroy[1] = false;// false = do nothing
45 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
46 //----------------------------------------------------------------------------------------------------------------------
47
48 //result1
49 AddResult("StoneKnife");//add results here
50
51 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
52 m_ResultSetQuantity[0] = -1;//-1 = do nothing
53 m_ResultSetHealth[0] = -1;//-1 = do nothing
54 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
55 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
56 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
57 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
58 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
59 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [56/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftsuppressor.c.

4 {
5 m_Name = "#STR_CraftSuppressor0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 25;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"WaterBottle");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"DuctTape");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = -25;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("ImprovisedSuppressor");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [57/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 6 of file crafttannedleather.c.

7 {
8 m_Name = "#STR_CraftTannedLeather0";
9 m_IsInstaRecipe = false; //should this recipe be performed instantly without animation
10 m_AnimationLength = 1; //animation length in relative time units
11 m_Specialty = 0.02; // value > 0 for roughness, value < 0 for precision
12
14 //conditions
15 m_MinDamageIngredient[0] = -1; //-1 = disable check
16 m_MaxDamageIngredient[0] = 3; //-1 = disable check
17
18 m_MinQuantityIngredient[0] = -1; //-1 = disable check
19 m_MaxQuantityIngredient[0] = -1; //-1 = disable check
20
21 m_MinDamageIngredient[1] = -1; //-1 = disable check
22 m_MaxDamageIngredient[1] = 3; //-1 = disable check
23
24 m_MinQuantityIngredient[1] = -1; //-1 = disable check
25 m_MaxQuantityIngredient[1] = -1; //-1 = disable check
26
27 //INGREDIENTS
28 //ingredient 1
29 InsertIngredient(0, "Pelt_Base"); //you can insert multiple ingredients this way
30
31 m_IngredientAddHealth[0] = 0; // 0 = do nothing
32 m_IngredientSetHealth[0] = -1; // -1 = do nothing
33 m_IngredientAddQuantity[0] = -1; // 0 = do nothing
34 m_IngredientDestroy[0] = true; //true = destroy, false = do nothing
35 m_IngredientUseSoftSkills[0] = false; // set 'true' to allow modification of the values by softskills on this ingredient
36
37 //ingredient 2
38 InsertIngredient(1, "GardenLime"); //you can insert multiple ingredients this way
39
40 m_IngredientAddHealth[1] = 0; // 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = 0; // 0 = do nothing
43 m_IngredientDestroy[1] = false; //true = destroy, false = do nothing
44 m_IngredientUseSoftSkills[1] = false; // set 'true' to allow modification of the values by softskills on this ingredient
45
46 //----------------------------------------------------------------------------------------------------------------------
47
48 //result1
49 AddResult("TannedLeather"); //add results here
50
51 m_ResultSetFullQuantity[0] = false; //true = set full quantity, false = do nothing
52 m_ResultSetQuantity[0] = -1; //-1 = do nothing
53 m_ResultSetHealth[0] = -1; //-1 = do nothing
54 m_ResultInheritsHealth[0] = -2; // (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
55 m_ResultInheritsColor[0] = -1; // (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
56 m_ResultToInventory[0] = -2; //(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
57 m_ResultUseSoftSkills[0] = false; // set 'true' to allow modification of the values by softskills on this result
58 m_ResultReplacesIngredient[0] = -1; // value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
59 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [58/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftterritoryflagkit.c.

4 {
5 m_Name = "#craft_territoryflag_kit";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 3;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Rope");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"WoodenStick");//you can insert multiple ingredients this way
37 InsertIngredient(1,"Ammo_SharpStick");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = -3;// 0 = do nothing
42 m_IngredientDestroy[1] = false;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 AddResult("TerritoryFlagKit");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [59/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file crafttorch.c.

4 {
5 m_Name = "#STR_CraftTorch0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Rag");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"WoodenStick");//you can insert multiple ingredients this way
37 InsertIngredient(1,"Ammo_SharpStick");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = -1;// 0 = do nothing
42 m_IngredientDestroy[1] = false;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 AddResult("Torch");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [60/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file crafttripwire.c.

4 {
5 m_Name = "#STR_CraftTripWire0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 2;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"WoodenStick");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -2;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"MetalWire");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("TripwireTrap");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [61/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file crafttruck01doublewheel.c.

4 {
5 m_Name = "#STR_CraftTruck01DoubleWheel0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Truck_01_Wheel");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = -1;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Truck_01_Wheel");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = -1;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("Truck_01_WheelDouble");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [62/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftwatchtowerkit.c.

4 {
5 m_Name = "#craft_watchtower_kit";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 4;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Rope");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"WoodenStick");//you can insert multiple ingredients this way
37 InsertIngredient(1,"Ammo_SharpStick");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = -4;// 0 = do nothing
42 m_IngredientDestroy[1] = false;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 AddResult("WatchtowerKit");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [63/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftwoodencrate.c.

4 {
5 m_Name = "#craft " + "#STR_cfgvehicles_wooden_case0"; //oink, create proper string
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 8;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 16;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"WoodenPlank");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -8;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Nail");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = -16;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("WoodenCrate");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [64/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file craftwoodenplank.c.

4 {
5 m_Name = "#STR_CraftWoodenPlank0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
11 m_MinDamageIngredient[0] = -1;//-1 = disable check
12 m_MaxDamageIngredient[0] = 3;//-1 = disable check
13
14 m_MinQuantityIngredient[0] = 1;//-1 = disable check
15 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
16
17 m_MinDamageIngredient[1] = -1;//-1 = disable check
18 m_MaxDamageIngredient[1] = 3;//-1 = disable check
19
20 m_MinQuantityIngredient[1] = -1;//-1 = disable check
21 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
22 //----------------------------------------------------------------------------------------------------------------------
23
24 //INGREDIENTS
25 //ingredient 1
26 InsertIngredient(0,"WoodenLog");//you can insert multiple ingredients this way
27
28 m_IngredientAddHealth[0] = 0;// 0 = do nothing
29 m_IngredientSetHealth[0] = -1; // -1 = do nothing
30 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
31 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
32 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
33
34 //ingredient 2
35 InsertIngredient(1,"Hacksaw");
36 InsertIngredient(1,"HandSaw");
37
38 m_IngredientAddHealth[1] = -7;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("WoodenPlank");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = 4;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [65/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file cutoutseeds.c.

4 {
5
6 }

◆ Init() [66/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 5 of file decraftarmband.c.

6 {
7 m_Name = "#STR_breakdown0";
8 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
9 m_AnimationLength = 1;//animation length in relative time units
10 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
11
12 //conditions
17
22
23
24 //ingredient 1
25 InsertIngredient(0,"Armband_ColorBase");//you can insert multiple ingredients this way
26
28 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
32
33 //ingredient 2
34 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
35 InsertIngredient(1,"KukriKnife");
36 InsertIngredient(1,"FangeKnife");
37 InsertIngredient(1,"Hacksaw");
38 InsertIngredient(1,"HandSaw");
39 InsertIngredient(1,"KitchenKnife");
40 InsertIngredient(1,"SteakKnife");
41 InsertIngredient(1,"HayHook");
42 InsertIngredient(1,"StoneKnife");
43 InsertIngredient(1,"Cleaver");
44 InsertIngredient(1,"CombatKnife");
45 InsertIngredient(1,"HuntingKnife");
46 InsertIngredient(1,"Machete");
47 InsertIngredient(1,"CrudeMachete");
48 InsertIngredient(1,"OrientalMachete");
49 InsertIngredient(1,"Screwdriver");
50 InsertIngredient(1,"Crowbar");
51 InsertIngredient(1,"Pickaxe");
52 InsertIngredient(1,"WoodAxe");
53 InsertIngredient(1,"Hatchet");
54 InsertIngredient(1,"FirefighterAxe");
55 InsertIngredient(1,"Sword");
56 InsertIngredient(1,"AK_Bayonet");
57 InsertIngredient(1,"M9A1_Bayonet");
58 InsertIngredient(1,"Mosin_Bayonet");
59 InsertIngredient(1,"SKS_Bayonet");
60 InsertIngredient(1,"BoneKnife");
61
63 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
67
68 // crafting multiple results
69
70
71 AddResult("Rag");//single result
72
75 m_ResultSetHealth[0] = -1;
76 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
77 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
78 m_ResultToInventory[0] = -2;
79 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
80 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
81 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [67/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftbow.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"QuickieBow");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -12;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69
70 //----------------------------------------------------------------------------------------------------------------------
71
72 //result1
73 AddResult("LongWoodenStick");//add results here
74
75 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
76 m_ResultSetQuantity[0] = -1;//-1 = do nothing
77 m_ResultSetHealth[0] = -1;//-1 = do nothing
78 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
79 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
80 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
81 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
82 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
83
84 //----------------------------------------------------------------------------------------------------------------------
85 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [68/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftcamonetshelter.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"CamoNetShelter");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"Mosin_Bayonet");
62 InsertIngredient(1,"SKS_Bayonet");
63 InsertIngredient(1,"BoneKnife");
64
65 m_IngredientAddHealth[1] = -12;// 0 = do nothing
66 m_IngredientSetHealth[1] = -1; // -1 = do nothing
67 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
68 m_IngredientDestroy[1] = false;// false = do nothing
69 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
70
71 //----------------------------------------------------------------------------------------------------------------------
72
73 //result1
74 AddResult("LongWoodenStick");//add results here
75
76 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
77 m_ResultSetQuantity[0] = -1;//-1 = do nothing
78 m_ResultSetHealth[0] = -1;//-1 = do nothing
79 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
80 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
81 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
82 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
83 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
84
85 //result2
86 AddResult("CamoNet");//add results here
87
88 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
89 m_ResultSetQuantity[1] = -1;// -1 = do nothing
90 m_ResultSetHealth[1] = -1;// -1 = do nothing
91 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
92 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
93 m_ResultToInventory[1] = false;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
94 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
95 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
96 //----------------------------------------------------------------------------------------------------------------------
97 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [69/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftcarriercomplete.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"PlateCarrierComplete");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"KitchenKnife");
41 InsertIngredient(1,"SteakKnife");
42 InsertIngredient(1,"HayHook");
43 InsertIngredient(1,"StoneKnife");
44 InsertIngredient(1,"Cleaver");
45 InsertIngredient(1,"CombatKnife");
46 InsertIngredient(1,"HuntingKnife");
47 InsertIngredient(1,"Machete");
48 InsertIngredient(1,"CrudeMachete");
49 InsertIngredient(1,"OrientalMachete");
50 InsertIngredient(1,"Screwdriver");
51 InsertIngredient(1,"Crowbar");
52 InsertIngredient(1,"Pickaxe");
53 InsertIngredient(1,"WoodAxe");
54 InsertIngredient(1,"Hatchet");
55 InsertIngredient(1,"FirefighterAxe");
56 InsertIngredient(1,"Sword");
57 InsertIngredient(1,"AK_Bayonet");
58 InsertIngredient(1,"M9A1_Bayonet");
59 InsertIngredient(1,"Mosin_Bayonet");
60 InsertIngredient(1,"SKS_Bayonet");
61 InsertIngredient(1,"BoneKnife");
62
63 m_IngredientAddHealth[1] = -5;// 0 = do nothing
64 m_IngredientSetHealth[1] = -1; // -1 = do nothing
65 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
66 m_IngredientDestroy[1] = false;// false = do nothing
67 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
68 //----------------------------------------------------------------------------------------------------------------------
69
70 //result1
71 AddResult("PlateCarrierBlank");//add results here
72
73 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
74 m_ResultSetQuantity[0] = -1;//-1 = do nothing
75 m_ResultSetHealth[0] = -1;//-1 = do nothing
76 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
77 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
78 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
79 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
80 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
81
82 //result2
83 AddResult("CarrierHolsterSolo");//add results here
84
85 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
86 m_ResultSetQuantity[1] = -1;//-1 = do nothing
87 m_ResultSetHealth[1] = -1;//-1 = do nothing
88 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
89 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
90 m_ResultToInventory[1] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
91 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
92 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
93
94 //result3
95 AddResult("CarrierPouches");//add results here
96
97 m_ResultSetFullQuantity[2] = false;//true = set full quantity, false = do nothing
98 m_ResultSetQuantity[2] = -1;//-1 = do nothing
99 m_ResultSetHealth[2] = -1;//-1 = do nothing
100 m_ResultInheritsHealth[2] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
101 m_ResultInheritsColor[2] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
102 m_ResultToInventory[2] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
103 m_ResultUseSoftSkills[2] = false;// set 'true' to allow modification of the values by softskills on this result
104 m_ResultReplacesIngredient[2] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
105 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [70/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftcarrierholster.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"PlateCarrierHolster");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"KitchenKnife");
41 InsertIngredient(1,"SteakKnife");
42 InsertIngredient(1,"HayHook");
43 InsertIngredient(1,"StoneKnife");
44 InsertIngredient(1,"Cleaver");
45 InsertIngredient(1,"CombatKnife");
46 InsertIngredient(1,"HuntingKnife");
47 InsertIngredient(1,"Machete");
48 InsertIngredient(1,"CrudeMachete");
49 InsertIngredient(1,"OrientalMachete");
50 InsertIngredient(1,"Screwdriver");
51 InsertIngredient(1,"Crowbar");
52 InsertIngredient(1,"Pickaxe");
53 InsertIngredient(1,"WoodAxe");
54 InsertIngredient(1,"Hatchet");
55 InsertIngredient(1,"FirefighterAxe");
56 InsertIngredient(1,"Sword");
57 InsertIngredient(1,"AK_Bayonet");
58 InsertIngredient(1,"M9A1_Bayonet");
59 InsertIngredient(1,"Mosin_Bayonet");
60 InsertIngredient(1,"SKS_Bayonet");
61 InsertIngredient(1,"BoneKnife");
62
63 m_IngredientAddHealth[1] = -5;// 0 = do nothing
64 m_IngredientSetHealth[1] = -1; // -1 = do nothing
65 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
66 m_IngredientDestroy[1] = false;// false = do nothing
67 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
68 //----------------------------------------------------------------------------------------------------------------------
69
70 //result1
71 AddResult("PlateCarrierBlank");//add results here
72
73 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
74 m_ResultSetQuantity[0] = -1;//-1 = do nothing
75 m_ResultSetHealth[0] = -1;//-1 = do nothing
76 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
77 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
78 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
79 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
80 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
81
82 //result2
83 AddResult("CarrierHolsterSolo");//add results here
84
85 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
86 m_ResultSetQuantity[1] = -1;//-1 = do nothing
87 m_ResultSetHealth[1] = -1;//-1 = do nothing
88 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
89 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
90 m_ResultToInventory[1] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
91 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
92 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
93 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [71/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftcarrierpouches.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"PlateCarrierPouches");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"KitchenKnife");
41 InsertIngredient(1,"SteakKnife");
42 InsertIngredient(1,"HayHook");
43 InsertIngredient(1,"StoneKnife");
44 InsertIngredient(1,"Cleaver");
45 InsertIngredient(1,"CombatKnife");
46 InsertIngredient(1,"HuntingKnife");
47 InsertIngredient(1,"Machete");
48 InsertIngredient(1,"CrudeMachete");
49 InsertIngredient(1,"OrientalMachete");
50 InsertIngredient(1,"Screwdriver");
51 InsertIngredient(1,"Crowbar");
52 InsertIngredient(1,"Pickaxe");
53 InsertIngredient(1,"WoodAxe");
54 InsertIngredient(1,"Hatchet");
55 InsertIngredient(1,"FirefighterAxe");
56 InsertIngredient(1,"Sword");
57 InsertIngredient(1,"AK_Bayonet");
58 InsertIngredient(1,"M9A1_Bayonet");
59 InsertIngredient(1,"Mosin_Bayonet");
60 InsertIngredient(1,"SKS_Bayonet");
61 InsertIngredient(1,"BoneKnife");
62
63 m_IngredientAddHealth[1] = -5;// 0 = do nothing
64 m_IngredientSetHealth[1] = -1; // -1 = do nothing
65 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
66 m_IngredientDestroy[1] = false;// false = do nothing
67 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
68 //----------------------------------------------------------------------------------------------------------------------
69
70 //result1
71 AddResult("PlateCarrierBlank");//add results here
72
73 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
74 m_ResultSetQuantity[0] = -1;//-1 = do nothing
75 m_ResultSetHealth[0] = -1;//-1 = do nothing
76 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
77 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
78 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
79 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
80 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
81
82 //result2
83 AddResult("CarrierPouches");//add results here
84
85 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
86 m_ResultSetQuantity[1] = -1;//-1 = do nothing
87 m_ResultSetHealth[1] = -1;//-1 = do nothing
88 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
89 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
90 m_ResultToInventory[1] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
91 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
92 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
93 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [72/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftcookingstand.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"CookingStand");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -12;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69
70 //----------------------------------------------------------------------------------------------------------------------
71
72 //result1
73 AddResult("WoodenStick");//add results here
74
75 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
76 m_ResultSetQuantity[0] = 5;//-1 = do nothing
77 m_ResultSetHealth[0] = -1;//-1 = do nothing
78 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
79 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
80 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
81 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
82 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
83
84 //----------------------------------------------------------------------------------------------------------------------
85 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [73/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftcourierbag.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"CourierBag");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -5;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69
70 //----------------------------------------------------------------------------------------------------------------------
71
72 //result1
73 AddResult("BurlapSack");//add results here
74
75 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
76 m_ResultSetQuantity[0] = -1;//-1 = do nothing
77 m_ResultSetHealth[0] = -1;//-1 = do nothing
78 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
79 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
80 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
81 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
82 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
83
84 //result2
85 AddResult("Rope");//add results here
86
87 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
88 m_ResultSetQuantity[1] = -1;// -1 = do nothing
89 m_ResultSetHealth[1] = -1;// -1 = do nothing
90 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
91 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
92 m_ResultToInventory[1] = false;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
93 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
94 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
95 //----------------------------------------------------------------------------------------------------------------------
96 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [74/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 5 of file decraftdetonator.c.

6 {
7 m_Name = "#STR_breakdown0";
8 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
9 m_AnimationLength = 1;//animation length in relative time units
10 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
11
12 //conditions
17
22
23
24 //ingredient 1
25 InsertIngredient(0,"RemoteDetonator");//you can insert multiple ingredients this way
26
28 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
32
33 //ingredient 2
34 InsertIngredient(1,"Screwdriver");//you can insert multiple ingredients this way
35
36
38 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
42
43 // crafting multiple results
44
45
46 AddResult("Battery9V");//single result
47
50 m_ResultSetHealth[0] = -1;
51 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [75/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftfishingrod.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"ImprovisedFishingRod");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"KitchenKnife");
41 InsertIngredient(1,"SteakKnife");
42 InsertIngredient(1,"HayHook");
43 InsertIngredient(1,"StoneKnife");
44 InsertIngredient(1,"Cleaver");
45 InsertIngredient(1,"CombatKnife");
46 InsertIngredient(1,"HuntingKnife");
47 InsertIngredient(1,"Machete");
48 InsertIngredient(1,"CrudeMachete");
49 InsertIngredient(1,"OrientalMachete");
50 InsertIngredient(1,"Screwdriver");
51 InsertIngredient(1,"Crowbar");
52 InsertIngredient(1,"Pickaxe");
53 InsertIngredient(1,"WoodAxe");
54 InsertIngredient(1,"Hatchet");
55 InsertIngredient(1,"FirefighterAxe");
56 InsertIngredient(1,"Sword");
57 InsertIngredient(1,"AK_Bayonet");
58 InsertIngredient(1,"M9A1_Bayonet");
59 InsertIngredient(1,"Mosin_Bayonet");
60 InsertIngredient(1,"SKS_Bayonet");
61 InsertIngredient(1,"BoneKnife");
62
63 m_IngredientAddHealth[1] = -5;// 0 = do nothing
64 m_IngredientSetHealth[1] = -1; // -1 = do nothing
65 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
66 m_IngredientDestroy[1] = false;// false = do nothing
67 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
68
69 //----------------------------------------------------------------------------------------------------------------------
70
71 //result1
72 AddResult("LongWoodenStick");//add results here
73
74 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
75 m_ResultSetQuantity[0] = -1;//-1 = do nothing
76 m_ResultSetHealth[0] = -1;//-1 = do nothing
77 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
78 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
79 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
80 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
81 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
82
83 //result2
84 AddResult("Rope");//add results here
85
86 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
87 m_ResultSetQuantity[1] = -1;//-1 = do nothing
88 m_ResultSetHealth[1] = -1;//-1 = do nothing
89 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
90 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
91 m_ResultToInventory[1] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
92 m_ResultUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this result
93 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
94 //----------------------------------------------------------------------------------------------------------------------
95 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [76/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftfishnettrap.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"FishNetTrap");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = 0;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
69 //----------------------------------------------------------------------------------------------------------------------
70
71 //result1
72 AddResult("MetalWire");//add results here
73
74 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
75 m_ResultSetQuantity[0] = -1;//-1 = do nothing
76 m_ResultSetHealth[0] = -1;//-1 = do nothing
77 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
78 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
79 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
80 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
81 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
82
83 // result 2
84 AddResult("Netting");//add results here
85
86 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
87 m_ResultSetQuantity[1] = 1;//-1 = do nothing
88 m_ResultSetHealth[1] = -1;//-1 = do nothing
89 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
90 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
91 m_ResultToInventory[1] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
92 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
93 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
94 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [77/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftghillieattachment.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"GhillieAtt_Tan");//you can insert multiple ingredients this way
28 InsertIngredient(0,"GhillieAtt_Woodland");//you can insert multiple ingredients this way
29 InsertIngredient(0,"GhillieAtt_Mossy");//you can insert multiple ingredients this way
30
31 m_IngredientAddHealth[0] = 0;// 0 = do nothing
32 m_IngredientSetHealth[0] = -1; // -1 = do nothing
33 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
34 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
35 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
36
37 //ingredient 2
38 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
39 InsertIngredient(1,"KukriKnife");
40 InsertIngredient(1,"FangeKnife");
41 InsertIngredient(1,"Hacksaw");
42 InsertIngredient(1,"HandSaw");
43 InsertIngredient(1,"KitchenKnife");
44 InsertIngredient(1,"SteakKnife");
45 InsertIngredient(1,"HayHook");
46 InsertIngredient(1,"StoneKnife");
47 InsertIngredient(1,"Cleaver");
48 InsertIngredient(1,"CombatKnife");
49 InsertIngredient(1,"HuntingKnife");
50 InsertIngredient(1,"Machete");
51 InsertIngredient(1,"CrudeMachete");
52 InsertIngredient(1,"OrientalMachete");
53 InsertIngredient(1,"Screwdriver");
54 InsertIngredient(1,"Crowbar");
55 InsertIngredient(1,"Pickaxe");
56 InsertIngredient(1,"WoodAxe");
57 InsertIngredient(1,"Hatchet");
58 InsertIngredient(1,"FirefighterAxe");
59 InsertIngredient(1,"Sword");
60 InsertIngredient(1,"AK_Bayonet");
61 InsertIngredient(1,"M9A1_Bayonet");
62 InsertIngredient(1,"Mosin_Bayonet");
63 InsertIngredient(1,"SKS_Bayonet");
64 InsertIngredient(1,"BoneKnife");
65
66 m_IngredientAddHealth[1] = -5;// 0 = do nothing
67 m_IngredientSetHealth[1] = -1; // -1 = do nothing
68 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
69 m_IngredientDestroy[1] = false;// false = do nothing
70 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
71
72 //----------------------------------------------------------------------------------------------------------------------
73
74 //result1
75 AddResult("Netting");//add results here
76
77 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
78 m_ResultSetQuantity[0] = 1;//-1 = do nothing
79 m_ResultSetHealth[0] = -1;//-1 = do nothing
80 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
81 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
82 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
83 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
84 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
85
86 //result2
87 AddResult("BurlapStrip");//add results here
88
89 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
90 m_ResultSetQuantity[1] = 1;// -1 = do nothing
91 m_ResultSetHealth[1] = -1;// -1 = do nothing
92 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
93 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
94 m_ResultToInventory[1] = false;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
95 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
96 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
97 //----------------------------------------------------------------------------------------------------------------------
98 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [78/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftghilliebushrag.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23
24 //----------------------------------------------------------------------------------------------------------------------
25
26 //INGREDIENTS
27 //ingredient 1
28 InsertIngredient(0,"GhillieBushrag_Tan");//you can insert multiple ingredients this way
29 InsertIngredient(0,"GhillieBushrag_Woodland");//you can insert multiple ingredients this way
30 InsertIngredient(0,"GhillieBushrag_Mossy");//you can insert multiple ingredients this way
31
32 m_IngredientAddHealth[0] = 0;// 0 = do nothing
33 m_IngredientSetHealth[0] = -1; // -1 = do nothing
34 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
35 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
36 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
37
38 //ingredient 2
39 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
40 InsertIngredient(1,"KukriKnife");
41 InsertIngredient(1,"FangeKnife");
42 InsertIngredient(1,"Hacksaw");
43 InsertIngredient(1,"HandSaw");
44 InsertIngredient(1,"KitchenKnife");
45 InsertIngredient(1,"SteakKnife");
46 InsertIngredient(1,"HayHook");
47 InsertIngredient(1,"StoneKnife");
48 InsertIngredient(1,"Cleaver");
49 InsertIngredient(1,"CombatKnife");
50 InsertIngredient(1,"HuntingKnife");
51 InsertIngredient(1,"Machete");
52 InsertIngredient(1,"CrudeMachete");
53 InsertIngredient(1,"OrientalMachete");
54 InsertIngredient(1,"Screwdriver");
55 InsertIngredient(1,"Crowbar");
56 InsertIngredient(1,"Pickaxe");
57 InsertIngredient(1,"WoodAxe");
58 InsertIngredient(1,"Hatchet");
59 InsertIngredient(1,"FirefighterAxe");
60 InsertIngredient(1,"Sword");
61 InsertIngredient(1,"AK_Bayonet");
62 InsertIngredient(1,"M9A1_Bayonet");
63 InsertIngredient(1,"Mosin_Bayonet");
64 InsertIngredient(1,"SKS_Bayonet");
65 InsertIngredient(1,"BoneKnife");
66
67 m_IngredientAddHealth[1] = -5;// 0 = do nothing
68 m_IngredientSetHealth[1] = -1; // -1 = do nothing
69 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
70 m_IngredientDestroy[1] = false;// false = do nothing
71 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
72
73 //----------------------------------------------------------------------------------------------------------------------
74
75 //result1
76 AddResult("Netting");//add results here
77
78 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
79 m_ResultSetQuantity[0] = 2;//-1 = do nothing
80 m_ResultSetHealth[0] = -1;//-1 = do nothing
81 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
82 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
83 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
84 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
85 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
86
87 //result2
88 AddResult("BurlapStrip");//add results here
89
90 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
91 m_ResultSetQuantity[1] = 2;// -1 = do nothing
92 m_ResultSetHealth[1] = -1;// -1 = do nothing
93 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
94 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
95 m_ResultToInventory[1] = false;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
96 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
97 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
98 //----------------------------------------------------------------------------------------------------------------------
99 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [79/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftghilliehood.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23
24 //----------------------------------------------------------------------------------------------------------------------
25
26 //INGREDIENTS
27 //ingredient 1
28 InsertIngredient(0,"GhillieHood_Tan");//you can insert multiple ingredients this way
29 InsertIngredient(0,"GhillieHood_Woodland");//you can insert multiple ingredients this way
30 InsertIngredient(0,"GhillieHood_Mossy");//you can insert multiple ingredients this way
31
32 m_IngredientAddHealth[0] = 0;// 0 = do nothing
33 m_IngredientSetHealth[0] = -1; // -1 = do nothing
34 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
35 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
36 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
37
38 //ingredient 2
39 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
40 InsertIngredient(1,"KukriKnife");
41 InsertIngredient(1,"FangeKnife");
42 InsertIngredient(1,"Hacksaw");
43 InsertIngredient(1,"HandSaw");
44 InsertIngredient(1,"KitchenKnife");
45 InsertIngredient(1,"SteakKnife");
46 InsertIngredient(1,"HayHook");
47 InsertIngredient(1,"StoneKnife");
48 InsertIngredient(1,"Cleaver");
49 InsertIngredient(1,"CombatKnife");
50 InsertIngredient(1,"HuntingKnife");
51 InsertIngredient(1,"Machete");
52 InsertIngredient(1,"CrudeMachete");
53 InsertIngredient(1,"OrientalMachete");
54 InsertIngredient(1,"Screwdriver");
55 InsertIngredient(1,"Crowbar");
56 InsertIngredient(1,"Pickaxe");
57 InsertIngredient(1,"WoodAxe");
58 InsertIngredient(1,"Hatchet");
59 InsertIngredient(1,"FirefighterAxe");
60 InsertIngredient(1,"Sword");
61 InsertIngredient(1,"AK_Bayonet");
62 InsertIngredient(1,"M9A1_Bayonet");
63 InsertIngredient(1,"Mosin_Bayonet");
64 InsertIngredient(1,"SKS_Bayonet");
65 InsertIngredient(1,"BoneKnife");
66
67 m_IngredientAddHealth[1] = -5;// 0 = do nothing
68 m_IngredientSetHealth[1] = -1; // -1 = do nothing
69 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
70 m_IngredientDestroy[1] = false;// false = do nothing
71 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
72
73 //----------------------------------------------------------------------------------------------------------------------
74
75 //result1
76 AddResult("Netting");//add results here
77
78 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
79 m_ResultSetQuantity[0] = 1;//-1 = do nothing
80 m_ResultSetHealth[0] = -1;//-1 = do nothing
81 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
82 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
83 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
84 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
85 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
86
87 //result2
88 AddResult("BurlapStrip");//add results here
89
90 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
91 m_ResultSetQuantity[1] = 1;// -1 = do nothing
92 m_ResultSetHealth[1] = -1;// -1 = do nothing
93 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
94 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
95 m_ResultToInventory[1] = false;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
96 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
97 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
98 //----------------------------------------------------------------------------------------------------------------------
99 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [80/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftghilliesuit.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23
24 //----------------------------------------------------------------------------------------------------------------------
25
26 //INGREDIENTS
27 //ingredient 1
28 InsertIngredient(0,"GhillieSuit_Tan");//you can insert multiple ingredients this way
29 InsertIngredient(0,"GhillieSuit_Woodland");//you can insert multiple ingredients this way
30 InsertIngredient(0,"GhillieSuit_Mossy");//you can insert multiple ingredients this way
31
32 m_IngredientAddHealth[0] = 0;// 0 = do nothing
33 m_IngredientSetHealth[0] = -1; // -1 = do nothing
34 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
35 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
36 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
37
38 //ingredient 2
39 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
40 InsertIngredient(1,"KukriKnife");
41 InsertIngredient(1,"FangeKnife");
42 InsertIngredient(1,"Hacksaw");
43 InsertIngredient(1,"HandSaw");
44 InsertIngredient(1,"KitchenKnife");
45 InsertIngredient(1,"SteakKnife");
46 InsertIngredient(1,"HayHook");
47 InsertIngredient(1,"StoneKnife");
48 InsertIngredient(1,"Cleaver");
49 InsertIngredient(1,"CombatKnife");
50 InsertIngredient(1,"HuntingKnife");
51 InsertIngredient(1,"Machete");
52 InsertIngredient(1,"CrudeMachete");
53 InsertIngredient(1,"OrientalMachete");
54 InsertIngredient(1,"Screwdriver");
55 InsertIngredient(1,"Crowbar");
56 InsertIngredient(1,"Pickaxe");
57 InsertIngredient(1,"WoodAxe");
58 InsertIngredient(1,"Hatchet");
59 InsertIngredient(1,"FirefighterAxe");
60 InsertIngredient(1,"Sword");
61 InsertIngredient(1,"AK_Bayonet");
62 InsertIngredient(1,"M9A1_Bayonet");
63 InsertIngredient(1,"Mosin_Bayonet");
64 InsertIngredient(1,"SKS_Bayonet");
65
66 m_IngredientAddHealth[1] = -5;// 0 = do nothing
67 m_IngredientSetHealth[1] = -1; // -1 = do nothing
68 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
69 m_IngredientDestroy[1] = false;// false = do nothing
70 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
71
72 //----------------------------------------------------------------------------------------------------------------------
73
74 //result1
75 AddResult("Netting");//add results here
76
77 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
78 m_ResultSetQuantity[0] = 4;//-1 = do nothing
79 m_ResultSetHealth[0] = -1;//-1 = do nothing
80 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
81 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
82 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
83 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
84 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
85
86 //result2
87 AddResult("BurlapStrip");//add results here
88
89 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
90 m_ResultSetQuantity[1] = 5;// -1 = do nothing
91 m_ResultSetHealth[1] = -1;// -1 = do nothing
92 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
93 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
94 m_ResultToInventory[1] = false;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
95 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
96 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
97 //----------------------------------------------------------------------------------------------------------------------
98 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [81/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftghillietop.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23
24 //----------------------------------------------------------------------------------------------------------------------
25
26 //INGREDIENTS
27 //ingredient 1
28 InsertIngredient(0,"GhillieTop_Tan");//you can insert multiple ingredients this way
29 InsertIngredient(0,"GhillieTop_Woodland");//you can insert multiple ingredients this way
30 InsertIngredient(0,"GhillieTop_Mossy");//you can insert multiple ingredients this way
31
32 m_IngredientAddHealth[0] = 0;// 0 = do nothing
33 m_IngredientSetHealth[0] = -1; // -1 = do nothing
34 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
35 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
36 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
37
38 //ingredient 2
39 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
40 InsertIngredient(1,"KukriKnife");
41 InsertIngredient(1,"FangeKnife");
42 InsertIngredient(1,"Hacksaw");
43 InsertIngredient(1,"HandSaw");
44 InsertIngredient(1,"KitchenKnife");
45 InsertIngredient(1,"SteakKnife");
46 InsertIngredient(1,"HayHook");
47 InsertIngredient(1,"StoneKnife");
48 InsertIngredient(1,"Cleaver");
49 InsertIngredient(1,"CombatKnife");
50 InsertIngredient(1,"HuntingKnife");
51 InsertIngredient(1,"Machete");
52 InsertIngredient(1,"CrudeMachete");
53 InsertIngredient(1,"OrientalMachete");
54 InsertIngredient(1,"Screwdriver");
55 InsertIngredient(1,"Crowbar");
56 InsertIngredient(1,"Pickaxe");
57 InsertIngredient(1,"WoodAxe");
58 InsertIngredient(1,"Hatchet");
59 InsertIngredient(1,"FirefighterAxe");
60 InsertIngredient(1,"Sword");
61 InsertIngredient(1,"AK_Bayonet");
62 InsertIngredient(1,"M9A1_Bayonet");
63 InsertIngredient(1,"Mosin_Bayonet");
64 InsertIngredient(1,"SKS_Bayonet");
65 InsertIngredient(1,"BoneKnife");
66
67 m_IngredientAddHealth[1] = -5;// 0 = do nothing
68 m_IngredientSetHealth[1] = -1; // -1 = do nothing
69 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
70 m_IngredientDestroy[1] = false;// false = do nothing
71 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
72
73 //----------------------------------------------------------------------------------------------------------------------
74
75 //result1
76 AddResult("Netting");//add results here
77
78 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
79 m_ResultSetQuantity[0] = 3;//-1 = do nothing
80 m_ResultSetHealth[0] = -1;//-1 = do nothing
81 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
82 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
83 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
84 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
85 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
86
87 //result2
88 AddResult("BurlapStrip");//add results here
89
90 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
91 m_ResultSetQuantity[1] = 3;// -1 = do nothing
92 m_ResultSetHealth[1] = -1;// -1 = do nothing
93 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
94 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
95 m_ResultToInventory[1] = false;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
96 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
97 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
98 //----------------------------------------------------------------------------------------------------------------------
99 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [82/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decrafthanddrillkit.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"HandDrillKit");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -12;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69
70 //----------------------------------------------------------------------------------------------------------------------
71
72 //result1
73 AddResult("WoodenStick");//add results here
74
75 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
76 m_ResultSetQuantity[0] = 1;//-1 = do nothing
77 m_ResultSetHealth[0] = -1;//-1 = do nothing
78 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
79 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
80 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
81 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
82 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
83
84 //----------------------------------------------------------------------------------------------------------------------
85 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [83/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftimprovisedbag.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"ImprovisedBag");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -5;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69
70 //----------------------------------------------------------------------------------------------------------------------
71
72 //result1
73 AddResult("WoodenStick");//add results here
74
75 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
76 m_ResultSetQuantity[0] = 3;//-1 = do nothing
77 m_ResultSetHealth[0] = -1;//-1 = do nothing
78 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
79 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
80 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
81 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
82 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
83
84 //result2
85 AddResult("BurlapSack");//add results here
86
87 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
88 m_ResultSetQuantity[1] = -1;// -1 = do nothing
89 m_ResultSetHealth[1] = -1;// -1 = do nothing
90 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
91 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
92 m_ResultToInventory[1] = false;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
93 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
94 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
95 //----------------------------------------------------------------------------------------------------------------------
96 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [84/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftimprovisedleatherbag.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"FurImprovisedBag");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -5;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69
70 //----------------------------------------------------------------------------------------------------------------------
71
72 //result1
73 AddResult("WoodenStick");//add results here
74
75 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
76 m_ResultSetQuantity[0] = 1;//-1 = do nothing
77 m_ResultSetHealth[0] = -1;//-1 = do nothing
78 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
79 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
80 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
81 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
82 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
83
84 //result2
85 AddResult("WildboarPelt");//add results here
86
87 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
88 m_ResultSetQuantity[1] = 3;// -1 = do nothing
89 m_ResultSetHealth[1] = -1;// -1 = do nothing
90 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
91 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
92 m_ResultToInventory[1] = false;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
93 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
94 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
95 //----------------------------------------------------------------------------------------------------------------------
96 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [85/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftleathercourierbag.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"FurCourierBag");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"BoneKnife");
44 InsertIngredient(1,"HayHook");
45 InsertIngredient(1,"StoneKnife");
46 InsertIngredient(1,"Cleaver");
47 InsertIngredient(1,"CombatKnife");
48 InsertIngredient(1,"HuntingKnife");
49 InsertIngredient(1,"Machete");
50 InsertIngredient(1,"CrudeMachete");
51 InsertIngredient(1,"OrientalMachete");
52 InsertIngredient(1,"Screwdriver");
53 InsertIngredient(1,"Crowbar");
54 InsertIngredient(1,"Pickaxe");
55 InsertIngredient(1,"WoodAxe");
56 InsertIngredient(1,"Hatchet");
57 InsertIngredient(1,"FirefighterAxe");
58 InsertIngredient(1,"Sword");
59 InsertIngredient(1,"AK_Bayonet");
60 InsertIngredient(1,"M9A1_Bayonet");
61 InsertIngredient(1,"Mosin_Bayonet");
62 InsertIngredient(1,"SKS_Bayonet");
63
64 m_IngredientAddHealth[1] = -5;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69
70 //----------------------------------------------------------------------------------------------------------------------
71
72 //result1
73 AddResult("WildboarPelt");//add results here
74
75 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
76 m_ResultSetQuantity[0] = 1;//-1 = do nothing
77 m_ResultSetHealth[0] = -1;//-1 = do nothing
78 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
79 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
80 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
81 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
82 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
83
84 //result2
85 AddResult("Rope");//add results here
86
87 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
88 m_ResultSetQuantity[1] = -1;// -1 = do nothing
89 m_ResultSetHealth[1] = -1;// -1 = do nothing
90 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
91 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
92 m_ResultToInventory[1] = false;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
93 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
94 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
95 //----------------------------------------------------------------------------------------------------------------------
96 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [86/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftleathersack.c.

4 {
5 m_Name = "#STR_DeCraftLeatherSack0";//"BREAK LEATHER SACK";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
11 m_MinDamageIngredient[0] = -1;//-1 = disable check
12 m_MaxDamageIngredient[0] = 3;//-1 = disable check
13
14 m_MinQuantityIngredient[0] = -1;//-1 = disable check
15 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
16
17 m_MinDamageIngredient[1] = -1;//-1 = disable check
18 m_MaxDamageIngredient[1] = 3;//-1 = disable check
19
20 m_MinQuantityIngredient[1] = -1;//-1 = disable check
21 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
22 //----------------------------------------------------------------------------------------------------------------------
23
24 //INGREDIENTS
25 //ingredient 1
26 InsertIngredient(0,"LeatherSack_ColorBase");//you can insert multiple ingredients this way
27
28 m_IngredientAddHealth[0] = 0;// 0 = do nothing
29 m_IngredientSetHealth[0] = -1; // -1 = do nothing
30 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
31 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
32 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
33
34 //ingredient 2
35 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
36 InsertIngredient(1,"KukriKnife");
37 InsertIngredient(1,"FangeKnife");
38 InsertIngredient(1,"Hacksaw");
39 InsertIngredient(1,"HandSaw");
40 InsertIngredient(1,"KitchenKnife");
41 InsertIngredient(1,"SteakKnife");
42 InsertIngredient(1,"HayHook");
43 InsertIngredient(1,"StoneKnife");
44 InsertIngredient(1,"Cleaver");
45 InsertIngredient(1,"CombatKnife");
46 InsertIngredient(1,"HuntingKnife");
47 InsertIngredient(1,"Machete");
48 InsertIngredient(1,"CrudeMachete");
49 InsertIngredient(1,"OrientalMachete");
50 InsertIngredient(1,"Screwdriver");
51 InsertIngredient(1,"Crowbar");
52 InsertIngredient(1,"Pickaxe");
53 InsertIngredient(1,"WoodAxe");
54 InsertIngredient(1,"Hatchet");
55 InsertIngredient(1,"FirefighterAxe");
56 InsertIngredient(1,"Sword");
57 InsertIngredient(1,"AK_Bayonet");
58 InsertIngredient(1,"M9A1_Bayonet");
59 InsertIngredient(1,"Mosin_Bayonet");
60 InsertIngredient(1,"SKS_Bayonet");
61 InsertIngredient(1,"BoneKnife");
62
63 m_IngredientAddHealth[1] = -12;// 0 = do nothing
64 m_IngredientSetHealth[1] = -1; // -1 = do nothing
65 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
66 m_IngredientDestroy[1] = false;// false = do nothing
67 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
68
69 //----------------------------------------------------------------------------------------------------------------------
70
71 //result1
72 AddResult("TannedLeather");//add results here
73 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
74 m_ResultSetQuantity[0] = 1;//-1 = do nothing
75 m_ResultSetHealth[0] = -1;//-1 = do nothing
76 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
77 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
78 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
79 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
80 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
81 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [87/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftsnaretrap.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"RabbitSnareTrap");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -12;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69
70 //----------------------------------------------------------------------------------------------------------------------
71
72 //result1
73 AddResult("MetalWire");//add results here
74
75 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
76 m_ResultSetQuantity[0] = 1;//-1 = do nothing
77 m_ResultSetHealth[0] = -1;//-1 = do nothing
78 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
79 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
80 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
81 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
82 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
83
84 //----------------------------------------------------------------------------------------------------------------------
85 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [88/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftspear.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spear");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -12;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69
70 //----------------------------------------------------------------------------------------------------------------------
71
72 //result1
73 AddResult("LongWoodenStick");//add results here
74
75 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
76 m_ResultSetQuantity[0] = -1;//-1 = do nothing
77 m_ResultSetHealth[0] = -1;//-1 = do nothing
78 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
79 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
80 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
81 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
82 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
83
84 //----------------------------------------------------------------------------------------------------------------------
85 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [89/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftsplint.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Splint");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -5;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69
70 //----------------------------------------------------------------------------------------------------------------------
71
72 //result1
73 AddResult("WoodenStick");//add results here
74
75 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
76 m_ResultSetQuantity[0] = 1;//-1 = do nothing
77 m_ResultSetHealth[0] = -1;//-1 = do nothing
78 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
79 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
80 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
81 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
82 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
83
84 //----------------------------------------------------------------------------------------------------------------------
85 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [90/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decrafttripwire.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"TripwireTrap");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"HayHook");
44 InsertIngredient(1,"StoneKnife");
45 InsertIngredient(1,"Cleaver");
46 InsertIngredient(1,"CombatKnife");
47 InsertIngredient(1,"HuntingKnife");
48 InsertIngredient(1,"Machete");
49 InsertIngredient(1,"CrudeMachete");
50 InsertIngredient(1,"OrientalMachete");
51 InsertIngredient(1,"Screwdriver");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -12;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69
70 //----------------------------------------------------------------------------------------------------------------------
71
72 //result1
73 AddResult("MetalWire");//add results here
74
75 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
76 m_ResultSetQuantity[0] = 1;//-1 = do nothing
77 m_ResultSetHealth[0] = -1;//-1 = do nothing
78 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
79 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
80 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
81 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
82 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
83
84 //----------------------------------------------------------------------------------------------------------------------
85 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [91/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decrafttruck01doublewheel.c.

4 {
5 m_Name = "#STR_DeCraftTruck01DoubleWheel0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Truck_01_WheelDouble");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = -1;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Crowbar");
37 InsertIngredient(1,"LugWrench");
38
39 m_IngredientAddHealth[1] = -20;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
42 m_IngredientDestroy[1] = false;// false = do nothing
43 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
44
45 //----------------------------------------------------------------------------------------------------------------------
46
47 //result1
48 AddResult("Truck_01_Wheel");//add results here
49 //m_ResultSpawnDistance[0] = 1.5;
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58
59 //result2
60 AddResult("Truck_01_Wheel");//add results here
61 //m_ResultSpawnDistance[1] = 2.5;
62 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
63 m_ResultSetQuantity[1] = -1;//-1 = do nothing
64 m_ResultSetHealth[1] = -1;//-1 = do nothing
65 m_ResultInheritsHealth[1] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
66 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
67 m_ResultToInventory[1] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
68 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
69 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
70
71 //----------------------------------------------------------------------------------------------------------------------
72 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [92/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file decraftwoodencrate.c.

4 {
5 m_Name = "#STR_breakdown0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
11 m_MinDamageIngredient[0] = -1;//-1 = disable check
12 m_MaxDamageIngredient[0] = 3;//-1 = disable check
13
14 m_MinQuantityIngredient[0] = -1;//-1 = disable check
15 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
16
17 m_MinDamageIngredient[1] = -1;//-1 = disable check
18 m_MaxDamageIngredient[1] = 3;//-1 = disable check
19
20 m_MinQuantityIngredient[1] = -1;//-1 = disable check
21 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
22 //----------------------------------------------------------------------------------------------------------------------
23
24 //INGREDIENTS
25 //ingredient 1
26 InsertIngredient(0,"WoodenCrate");//you can insert multiple ingredients this way
27
28 m_IngredientAddHealth[0] = 0;// 0 = do nothing
29 m_IngredientSetHealth[0] = -1; // -1 = do nothing
30 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
31 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
32 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
33
34 //ingredient 2
35 InsertIngredient(1,"Crowbar");
36 InsertIngredient(1,"WoodAxe");
37 InsertIngredient(1,"Hatchet");
38 InsertIngredient(1,"FirefighterAxe");
39
40 m_IngredientAddHealth[1] = -20;// 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
43 m_IngredientDestroy[1] = false;// false = do nothing
44 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
45
46 //----------------------------------------------------------------------------------------------------------------------
47
48 //result1
49 AddResult("WoodenPlank");//add results here
50
51 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
52 m_ResultSetQuantity[0] = 2;//-1 = do nothing
53 m_ResultSetHealth[0] = -1;//-1 = do nothing
54 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
55 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
56 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
57 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
58 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
59
60 //result2
61 AddResult("Nail");//add results here
62
63 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
64 m_ResultSetQuantity[1] = 6;// -1 = do nothing
65 m_ResultSetHealth[1] = -1;// -1 = do nothing
66 m_ResultInheritsHealth[1] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
67 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
68 m_ResultToInventory[1] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
69 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
70 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
71 //----------------------------------------------------------------------------------------------------------------------
72 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [93/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file disinfectitem.c.

4 {
5 m_Name = "#disinfect";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"DisinfectantSpray");//you can insert multiple ingredients this way
28 InsertIngredient(0,"DisinfectantAlcohol");
29 InsertIngredient(0,"IodineTincture");
30
31 m_IngredientAddHealth[0] = 0;// 0 = do nothing
32 m_IngredientSetHealth[0] = -1; // -1 = do nothing
33 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
34 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
35 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
36
37 //ingredient 2
38 InsertIngredient(1,"Inventory_Base");//you can insert multiple ingredients this way
39
40 m_IngredientAddHealth[1] = 0;// 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
43 m_IngredientDestroy[1] = false;// false = do nothing
44 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
45 //----------------------------------------------------------------------------------------------------------------------
46
47 //result1
48 //AddResult("");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58 }

References InsertIngredient(), and m_Name.

◆ Init() [94/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file drainliquid.c.

4 {
5 m_Name = "#STR_DrainLiquid0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 0;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 0;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Pot");//you can insert multiple ingredients this way
28 InsertIngredient(0,"CanisterGasoline");//you can insert multiple ingredients this way
29 InsertIngredient(0,"Canteen");//you can insert multiple ingredients this way
30 InsertIngredient(0,"WaterBottle");//you can insert multiple ingredients this way
31 InsertIngredient(0,"Vodka");//you can insert multiple ingredients this way
32 InsertIngredient(0,"WaterPouch_ColorBase");//you can insert multiple ingredients this way
33 InsertIngredient(0,"Barrel_ColorBase");//you can insert multiple ingredients this way
34
35 m_IngredientAddHealth[0] = 0;// 0 = do nothing
36 m_IngredientSetHealth[0] = -1; // -1 = do nothing
37 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
38 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
39 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
40
41 //ingredient 2
42 InsertIngredient(1,"Pot");//you can insert multiple ingredients this way
43 InsertIngredient(1,"CanisterGasoline");//you can insert multiple ingredients this way
44 InsertIngredient(1,"Canteen");//you can insert multiple ingredients this way
45 InsertIngredient(1,"WaterBottle");//you can insert multiple ingredients this way
46 InsertIngredient(1,"Vodka");//you can insert multiple ingredients this way
47 InsertIngredient(1,"WaterPouch_ColorBase");//you can insert multiple ingredients this way
48 InsertIngredient(1,"Barrel_ColorBase");//you can insert multiple ingredients this way
49
50 m_IngredientAddHealth[1] = 0;// 0 = do nothing
51 m_IngredientSetHealth[1] = -1; // -1 = do nothing
52 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
53 m_IngredientDestroy[1] = false;// false = do nothing
54 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
55 //----------------------------------------------------------------------------------------------------------------------
56
57 //result1
58 //AddResult("");//add results here
59
60 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
61 m_ResultSetQuantity[0] = -1;//-1 = do nothing
62 m_ResultSetHealth[0] = -1;//-1 = do nothing
63 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
64 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
65 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
66 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
67 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
68 }

References InsertIngredient(), and m_Name.

◆ Init() [95/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file extinguishtorch.c.

4 {
5 m_Name = "#extinguish";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20 //TODO SS 2.0 should modify MinQuantity of liquid
21 m_MinQuantityIngredient[1] = 100;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Torch");//you can insert multiple ingredients this way
28 InsertIngredient(0,"Broom");//you can insert multiple ingredients this way
29
30 m_IngredientAddHealth[0] = 0;// 0 = do nothing
31 m_IngredientSetHealth[0] = -1; // -1 = do nothing
32 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
33 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
34 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
35
36 //ingredient 2
37 InsertIngredient(1,"Pot");//you can insert multiple ingredients this way
38 InsertIngredient(1,"CanisterGasoline");//you can insert multiple ingredients this way
39 InsertIngredient(1,"DisinfectantAlcohol");//you can insert multiple ingredients this way
40 InsertIngredient(1,"Canteen");//you can insert multiple ingredients this way
41 InsertIngredient(1,"WaterBottle");//you can insert multiple ingredients this way
42 InsertIngredient(1,"Vodka");//you can insert multiple ingredients this way
43 InsertIngredient(1,"WaterPouch_ColorBase");//you can insert multiple ingredients this way
44 InsertIngredient(1,"Barrel_ColorBase");//you can insert multiple ingredients this way
45
46 m_IngredientAddHealth[1] = 0;// 0 = do nothing
47 m_IngredientSetHealth[1] = -1; // -1 = do nothing
48 m_IngredientAddQuantity[1] = -100;// 0 = do nothing
49 m_IngredientDestroy[1] = false;// false = do nothing
50 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
51 //----------------------------------------------------------------------------------------------------------------------
52
53 //result1
54 //AddResult("");//add results here
55
56 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
57 m_ResultSetQuantity[0] = -1;//-1 = do nothing
58 m_ResultSetHealth[0] = -1;//-1 = do nothing
59 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
60 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
61 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
62 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
63 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
64 }

References InsertIngredient(), and m_Name.

◆ Init() [96/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file fillgasmask_filter.c.

4 {
5 m_Name = "#STR_FillFilter";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 0.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"CharcoalTablets");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GasMask_Filter");//you can insert multiple ingredients this way
37 InsertIngredient(1,"GasMask_Filter_Improvised");
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
42 m_IngredientDestroy[1] = false;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45 /*
46 //result1
47 //AddResult("GasMask_Filter_Improvised");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = 0;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [97/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file fillsyringe.c.

4 {
5 m_Name = "#fill";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"InjectionVial");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Syringe");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = true;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("ClearSyringe");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [98/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file fuelchainsaw.c.

4 {
5 m_Name = "#refuel";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 0;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Chainsaw");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Pot");//you can insert multiple ingredients this way
37 InsertIngredient(1,"CanisterGasoline");//you can insert multiple ingredients this way
38 InsertIngredient(1,"DisinfectantAlcohol");//you can insert multiple ingredients this way
39 InsertIngredient(1,"Canteen");//you can insert multiple ingredients this way
40 InsertIngredient(1,"WaterBottle");//you can insert multiple ingredients this way
41 InsertIngredient(1,"Vodka");//you can insert multiple ingredients this way
42 InsertIngredient(1,"WaterPouch_ColorBase");//you can insert multiple ingredients this way
43 InsertIngredient(1,"Barrel_ColorBase");//you can insert multiple ingredients this way
44
45 m_IngredientAddHealth[1] = 0;// 0 = do nothing
46 m_IngredientSetHealth[1] = -1; // -1 = do nothing
47 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
48 m_IngredientDestroy[1] = false;// false = do nothing
49 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
50 //----------------------------------------------------------------------------------------------------------------------
51
52 //result1
53 //AddResult("");//add results here
54
55 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
56 m_ResultSetQuantity[0] = -1;//-1 = do nothing
57 m_ResultSetHealth[0] = -1;//-1 = do nothing
58 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
59 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
60 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
61 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
62 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
63 }

References InsertIngredient(), and m_Name.

◆ Init() [99/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file loadmagazine.c.

4 {
5 m_Name = "#load_magazine";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = 0;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Ammunition_Base");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Magazine_Base");//you can insert multiple ingredients this way
37
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
42 m_IngredientDestroy[1] = false;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 //AddResult("");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References InsertIngredient(), and m_Name.

◆ Init() [100/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file opencan.c.

4 {
5 m_Name = "#STR_OpenCan0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10 m_AnywhereInInventory = false;//is this recipe valid even when neither of the items is in hands
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"BakedBeansCan");//you can insert multiple ingredients this way
28 InsertIngredient(0,"PeachesCan");//you can insert multiple ingredients this way
29 InsertIngredient(0,"TacticalBaconCan");//you can insert multiple ingredients this way
30 InsertIngredient(0,"SpaghettiCan");//you can insert multiple ingredients this way
31 InsertIngredient(0,"SardinesCan");//you can insert multiple ingredients this way
32 InsertIngredient(0,"UnknownFoodCan");//you can insert multiple ingredients this way
33
34 m_IngredientAddHealth[0] = 0;// 0 = do nothing
35 m_IngredientSetHealth[0] = -1; // -1 = do nothing
36 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
37 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
38 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
39
40 //ingredient 2
41 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
42 InsertIngredient(1,"KukriKnife");
43 InsertIngredient(1,"FangeKnife");
44 InsertIngredient(1,"Hacksaw");
45 InsertIngredient(1,"KitchenKnife");
46 InsertIngredient(1,"SteakKnife");
47 InsertIngredient(1,"StoneKnife");
48 InsertIngredient(1,"CombatKnife");
49 InsertIngredient(1,"HuntingKnife");
50 InsertIngredient(1,"Machete");
51 InsertIngredient(1,"CrudeMachete");
52 InsertIngredient(1,"OrientalMachete");
53 InsertIngredient(1,"AK_Bayonet");
54 InsertIngredient(1,"M9A1_Bayonet");
55 InsertIngredient(1,"Mosin_Bayonet");
56 InsertIngredient(1,"SKS_Bayonet");
57 InsertIngredient(1,"CanOpener");
58 InsertIngredient(1,"FarmingHoe");
59 InsertIngredient(1,"Shovel");
60 InsertIngredient(1,"FieldShovel");
61 InsertIngredient(1,"Crowbar");
62 InsertIngredient(1,"Hammer");
63 InsertIngredient(1,"Wrench");
64 InsertIngredient(1,"LugWrench");
65 InsertIngredient(1,"Screwdriver");
66 InsertIngredient(1,"SledgeHammer");
67 InsertIngredient(1,"BaseballBat");
68 InsertIngredient(1,"NailedBaseballBat");
69 InsertIngredient(1,"BarbedBaseballBat");
70 InsertIngredient(1,"PipeWrench");
71 InsertIngredient(1,"Pickaxe");
72 InsertIngredient(1,"WoodAxe");
73 InsertIngredient(1,"FirefighterAxe");
74 InsertIngredient(1,"Hatchet");
75 InsertIngredient(1,"HandSaw");
76 InsertIngredient(1,"Pliers");
77 InsertIngredient(1,"Spear");
78 InsertIngredient(1,"Pitchfork");
79 InsertIngredient(1,"BoneKnife");
80 InsertIngredient(1,"MeatTenderizer");
81 InsertIngredient(1,"Cleaver");
82
83 m_IngredientAddHealth[1] = -0.5;// 0 = do nothing
84 m_IngredientSetHealth[1] = -1; // -1 = do nothing
85 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
86 m_IngredientDestroy[1] = false;// false = do nothing
87 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
88 //----------------------------------------------------------------------------------------------------------------------
89
90 //result1
91 //AddResult("");//add results here
92
93 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
94 m_ResultSetQuantity[0] = 0;//-1 = do nothing
95 m_ResultSetHealth[0] = -1;//-1 = do nothing
96 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
97 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
98 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
99 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
100 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
101
102 //----------------------------------------------------------------------------------------------------------------------
103 }

References InsertIngredient(), and m_Name.

◆ Init() [101/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintak101.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"AK101");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 //AddResult("AK101_");//add results here
47/*
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 */
57 }

References InsertIngredient(), and m_Name.

◆ Init() [102/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintak10130mag.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Mag_AK101_30Rnd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("Mag_AK101_30Rnd_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [103/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintak74.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"AK74");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("AK74_");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [104/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintak7430mag.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Mag_AK74_30Rnd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("Mag_AK74_30Rnd_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = 1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [105/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintak74hndgrdblack.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Black");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"AK74_Hndgrd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("AK74_Hndgrd_Black");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [106/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintak74hndgrdcamo.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"AK74_Hndgrd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("AK74_Hndgrd_Camo");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [107/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintak74woodbttstckblack.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Black");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"AK74_WoodBttstck");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("AK74_WoodBttstck_Black");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [108/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintak74woodbttstckcamo.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"AK74_WoodBttstck");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("AK74_WoodBttstck_Camo");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [109/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintakfoldingbttstck.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"AK_FoldingBttstck");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("AK_FoldingBttstck_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [110/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintakmdrummag.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Mag_AKM_Drum75Rnd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("Mag_AKM_Drum75Rnd_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = 1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [111/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintakmpalm30mag.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Mag_AKM_Palm30Rnd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("Mag_AKM_Palm30Rnd_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [112/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintakplasticbttstck.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"AK_PlasticBttstck");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("AK_PlasticBttstck_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [113/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintakrailhndgrd.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"AK_RailHndgrd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("AK_RailHndgrd_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [114/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintaks74u.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"AKS74U");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("AKS74U_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [115/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintaks74ubttstck.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"AKS74U_Bttstck");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("AKS74U_Bttstck_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [116/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintakwoodbttstckblack.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Black");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"AK_WoodBttstck");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("AK_WoodBttstck_Black");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [117/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintakwoodbttstckcamo.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"AK_WoodBttstck");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("AK_WoodBttstck_Camo");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [118/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintb95.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"B95");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("B95_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [119/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintballistichelmet.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"BallisticHelmet_ColorBase");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("BallisticHelmet_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [120/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintcmag10.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Mag_CMAG_10Rnd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("Mag_CMAG_10Rnd_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [121/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintcmag20.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Mag_CMAG_20Rnd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("Mag_CMAG_20Rnd_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [122/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintcmag30.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Mag_CMAG_30Rnd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("Mag_CMAG_30Rnd_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [123/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintcmag40.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Mag_CMAG_40Rnd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("Mag_CMAG_40Rnd_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [124/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintcz527.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"CZ527");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("CZ527_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [125/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintcz527camoblack.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Black");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"CZ527_Green");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("CZ527_Camo");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [126/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintcz527camogreen.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"CZ527_Black");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("CZ527_Camo");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [127/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintdarkmotohelmet.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"DarkMotoHelmet_ColorBase");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("DarkMotoHelmet_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [128/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintfirefighteraxe.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"FirefighterAxe");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("FirefighterAxe_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [129/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghillieattblack.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 40;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Black");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -40;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieAtt_Woodland");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("GhillieAtt_Mossy");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [130/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghillieattgreen.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 40;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -40;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieAtt_Tan");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("GhillieAtt_Woodland");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [131/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghillieattgreenmossy.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 40;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -40;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieAtt_Mossy");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("GhillieAtt_Woodland");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [132/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghilliebushragblack.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 50;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Black");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -50;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieBushrag_Woodland");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("GhillieBushrag_Mossy");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [133/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghilliebushraggreen.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 50;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -50;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieBushrag_Tan");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("GhillieBushrag_Woodland");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = 0;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [134/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghilliebushraggreenmossy.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 50;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -50;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieBushrag_Mossy");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("GhillieBushrag_Woodland");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [135/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghilliehoodblack.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 40;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Black");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -40;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieHood_Woodland");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("GhillieHood_Mossy");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [136/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghilliehoodgreen.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 40;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -40;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieHood_Tan");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("GhillieHood_Woodland");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [137/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghilliehoodgreenmossy.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 40;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -40;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieHood_Mossy");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("GhillieHood_Woodland");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [138/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghilliesuitblack.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 90;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Black");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -90;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieSuit_Woodland");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 AddResult("GhillieSuit_Mossy");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [139/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghilliesuitgreen.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 90;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -90;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieSuit_Tan");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("GhillieSuit_Woodland");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [140/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghilliesuitgreenmossy.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 90;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -90;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieSuit_Mossy");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("GhillieSuit_Woodland");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [141/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghillietopblack.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 75;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Black");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -75;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieTop_Woodland");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("GhillieTop_Mossy");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [142/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghillietopgreen.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 75;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -75;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieTop_Tan");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("GhillieTop_Woodland");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [143/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintghillietopgreenmossy.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 75;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -75;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GhillieTop_Mossy");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("GhillieTop_Woodland");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [144/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintgorkahelmet.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GorkaHelmet");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("GorkaHelmet_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [145/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintgorkahelmetcomplete.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"GorkaHelmetComplete");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("GorkaHelmetComplete_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = 1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [146/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintm4a1.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"M4A1");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("M4A1_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [147/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintm4cqbbttstck.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"M4_CQBBttstck");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("M4_CQBBttstck_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [148/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintm4mpbttstck.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"M4_MPBttstck");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("M4_MPBttstck_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [149/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintm4mphndgrd.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"M4_MPHndgrd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("M4_MPHndgrd_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [150/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintm4oebttstck.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"M4_OEBttstck");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("M4_OEBttstck_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [151/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintm4plastichndgrd.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"M4_PlasticHndgrd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("M4_PlasticHndgrd_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [152/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintm4rishndgrd.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"M4_RISHndgrd");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("M4_RISHndgrd_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [153/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintmosin.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Mosin9130");//you can insert multiple ingredients this way
37 InsertIngredient(1,"Mosin9130_Black");//you can insert multiple ingredients this way
38 InsertIngredient(1,"Mosin9130_Green");//you can insert multiple ingredients this way
39 InsertIngredient(1,"Mosin9130_Camo");//you can insert multiple ingredients this way
40
41 m_IngredientAddHealth[1] = 0;// 0 = do nothing
42 m_IngredientSetHealth[1] = -1; // -1 = do nothing
43 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
44 m_IngredientDestroy[1] = false;// false = do nothing
45 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
46 //----------------------------------------------------------------------------------------------------------------------
47
48 //result1
49 /*
50 AddResult("Mosin9130_");//add results here
51
52 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
53 m_ResultSetQuantity[0] = -1;//-1 = do nothing
54 m_ResultSetHealth[0] = -1;//-1 = do nothing
55 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
56 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
57 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
58 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
59 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
60 */
61 }

References InsertIngredient(), and m_Name.

◆ Init() [154/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintmosincamoblack.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Black");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Mosin9130_Green");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("Mosin9130_Camo");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [155/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintmosincamogreen.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Mosin9130_Black");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("Mosin9130_Camo");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [156/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintmotohelmet.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"MotoHelmet_ColorBase");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("MotoHelmet_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [157/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintruger1022.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Ruger1022");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("Ruger1022_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [158/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintsawedoffmosin.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"SawedoffMosin9130");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("SawedoffMosin9130_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [159/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintsawedoffmosincamoblack.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Black");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"SawedoffMosin9130_Green");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("SawedoffMosin9130_Camo");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [160/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintsawedoffmosincamogreen.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_Green");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"SawedoffMosin9130_Black");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("SawedoffMosin9130_Camo");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [161/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintsks.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"SKS");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("SKS_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [162/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file paintzsh3pilothelmet.c.

4 {
5 m_Name = "#STR_paint0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 25;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Spraycan_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -25;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"ZSh3PilotHelmet");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 /*
47 AddResult("ZSh3PilotHelmet_");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = 1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -1;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = 1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 */
58 }

References InsertIngredient(), and m_Name.

◆ Init() [163/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file patchitem.c.

4 {
5 m_Name = "#STR_PatchItem0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = 1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"LeatherSewingKit");//you can insert multiple ingredients this way
28 InsertIngredient(0,"SewingKit");//you can insert multiple ingredients this way
29 InsertIngredient(0,"TireRepairKit");//you can insert multiple ingredients this way
30
31 m_IngredientAddHealth[0] = 0;// 0 = do nothing
32 m_IngredientSetHealth[0] = -1; // -1 = do nothing
33 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
34 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
35 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
36
37 //ingredient 2
38 InsertIngredient(1,"Inventory_Base");//you can insert multiple ingredients this way
39
40 m_IngredientAddHealth[1] = 0;// 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
43 m_IngredientDestroy[1] = false;// false = do nothing
44 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
45
46 //----------------------------------------------------------------------------------------------------------------------
47
48 //result1
49 //AddResult("");//add results here
50
51 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
52 m_ResultSetQuantity[0] = -1;//-1 = do nothing
53 m_ResultSetHealth[0] = -1;//-1 = do nothing
54 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
55 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
56 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
57 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
58 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
59
60 //----------------------------------------------------------------------------------------------------------------------
61 }

References InsertIngredient(), and m_Name.

◆ Init() [164/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file peelpotato.c.

4 {
5 m_Name = "#PeelPotato";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10 m_AnywhereInInventory = false;//is this recipe valid even when neither of the items is in hands
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"PotatoSeed");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"KitchenKnife");
41 InsertIngredient(1,"SteakKnife");
42 InsertIngredient(1,"StoneKnife");
43 InsertIngredient(1,"Cleaver");
44 InsertIngredient(1,"CombatKnife");
45 InsertIngredient(1,"HuntingKnife");
46 InsertIngredient(1,"Machete");
47 InsertIngredient(1,"CrudeMachete");
48 InsertIngredient(1,"OrientalMachete");
49 InsertIngredient(1,"AK_Bayonet");
50 InsertIngredient(1,"M9A1_Bayonet");
51 InsertIngredient(1,"Mosin_Bayonet");
52 InsertIngredient(1,"SKS_Bayonet");
53 InsertIngredient(1,"Wrench");
54 InsertIngredient(1,"Screwdriver");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"HandSaw");
57 InsertIngredient(1,"BoneKnife");
58
59 m_IngredientAddHealth[1] = -0.5;// 0 = do nothing
60 m_IngredientSetHealth[1] = -1; // -1 = do nothing
61 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
62 m_IngredientDestroy[1] = false;// false = do nothing
63 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
64 //----------------------------------------------------------------------------------------------------------------------
65
66 //result1
67 AddResult("Potato");//add results here
68
69 m_ResultSetFullQuantity[0] = true;//true = set full quantity, false = do nothing
70 m_ResultSetQuantity[0] = -1;//-1 = do nothing
71 m_ResultSetHealth[0] = -1;//-1 = do nothing
72 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
73 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
74 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
75 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
76 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
77
78 //----------------------------------------------------------------------------------------------------------------------
79 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [165/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file pokeholesbarrel.c.

4 {
5 m_Name = "#STR_PokeHolesBarrel0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
15
20
21
22 //ingredient 1
23 InsertIngredient(0,"Barrel_ColorBase");//you can insert multiple ingredients this way
24
27 m_IngredientSetHealth[0] = -1; // -1 = do nothing
29 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
30
31 //ingredient 2
32 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
33 InsertIngredient(1,"KukriKnife");
34 InsertIngredient(1,"FangeKnife");
35 InsertIngredient(1,"Hacksaw");
36 InsertIngredient(1,"KitchenKnife");
37 InsertIngredient(1,"SteakKnife");
38 InsertIngredient(1,"HayHook");
39 InsertIngredient(1,"StoneKnife");
40 InsertIngredient(1,"Cleaver");
41 InsertIngredient(1,"CombatKnife");
42 InsertIngredient(1,"HuntingKnife");
43 InsertIngredient(1,"Machete");
44 InsertIngredient(1,"CrudeMachete");
45 InsertIngredient(1,"OrientalMachete");
46 InsertIngredient(1,"Screwdriver");
47 InsertIngredient(1,"Crowbar");
48 InsertIngredient(1,"Pickaxe");
49 InsertIngredient(1,"WoodAxe");
50 InsertIngredient(1,"Hatchet");
51 InsertIngredient(1,"FirefighterAxe");
52 InsertIngredient(1,"Sword");
53 InsertIngredient(1,"AK_Bayonet");
54 InsertIngredient(1,"M9A1_Bayonet");
55 InsertIngredient(1,"Mosin_Bayonet");
56 InsertIngredient(1,"SKS_Bayonet");
57
58 m_IngredientAddHealth[1] = -100;
59 m_IngredientSetHealth[1] = -1; // -1 = do nothing
62 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
63
64 // crafting multiple results
65 AddResult("BarrelHoles_");//additional results, must be processed individually in Do method (as "results" parameter)
66
67 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
68 m_ResultSetQuantity[0] = -1;//-1 = do nothing
69 m_ResultSetHealth[0] = -1;//-1 = do nothing
70 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
71 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
72 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
73 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
74 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
75 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [166/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file pourliquid.c.

4 {
5 m_Name = "#STR_PourLiquid0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 0;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 0;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Pot");//you can insert multiple ingredients this way
28 InsertIngredient(0,"CanisterGasoline");//you can insert multiple ingredients this way
29 InsertIngredient(0,"Canteen");//you can insert multiple ingredients this way
30 InsertIngredient(0,"WaterBottle");//you can insert multiple ingredients this way
31 InsertIngredient(0,"Vodka");//you can insert multiple ingredients this way
32 InsertIngredient(0,"WaterPouch_ColorBase");//you can insert multiple ingredients this way
33 InsertIngredient(0,"Barrel_ColorBase");//you can insert multiple ingredients this way
34
35 m_IngredientAddHealth[0] = 0;// 0 = do nothing
36 m_IngredientSetHealth[0] = -1; // -1 = do nothing
37 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
38 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
39 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
40
41 //ingredient 2
42 InsertIngredient(1,"Pot");//you can insert multiple ingredients this way
43 InsertIngredient(1,"CanisterGasoline");//you can insert multiple ingredients this way
44 InsertIngredient(1,"Canteen");//you can insert multiple ingredients this way
45 InsertIngredient(1,"WaterBottle");//you can insert multiple ingredients this way
46 InsertIngredient(1,"Vodka");//you can insert multiple ingredients this way
47 InsertIngredient(1,"WaterPouch_ColorBase");//you can insert multiple ingredients this way
48 InsertIngredient(1,"Barrel_ColorBase");//you can insert multiple ingredients this way
49
50 m_IngredientAddHealth[1] = 0;// 0 = do nothing
51 m_IngredientSetHealth[1] = -1; // -1 = do nothing
52 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
53 m_IngredientDestroy[1] = false;// false = do nothing
54 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
55 //----------------------------------------------------------------------------------------------------------------------
56
57 //result1
58 //AddResult("");//add results here
59
60 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
61 m_ResultSetQuantity[0] = -1;//-1 = do nothing
62 m_ResultSetHealth[0] = -1;//-1 = do nothing
63 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
64 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
65 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
66 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
67 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
68 }

References InsertIngredient(), and m_Name.

◆ Init() [167/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file preparechicken.c.

4 {
5 m_Name = "#skin";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"DeadChicken_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"StoneKnife");
44 InsertIngredient(1,"Cleaver");
45 InsertIngredient(1,"CombatKnife");
46 InsertIngredient(1,"HuntingKnife");
47 InsertIngredient(1,"Machete");
48 InsertIngredient(1,"CrudeMachete");
49 InsertIngredient(1,"OrientalMachete");
50 InsertIngredient(1,"WoodAxe");
51 InsertIngredient(1,"Hatchet");
52 InsertIngredient(1,"FirefighterAxe");
53 InsertIngredient(1,"Sword");
54 InsertIngredient(1,"AK_Bayonet");
55 InsertIngredient(1,"M9A1_Bayonet");
56 InsertIngredient(1,"SKS_Bayonet");
57 InsertIngredient(1,"BoneKnife");
58 InsertIngredient(1,"Screwdriver");
59
60 m_IngredientAddHealth[1] = -12;// 0 = do nothing
61 m_IngredientSetHealth[1] = -1; // -1 = do nothing
62 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
63 m_IngredientDestroy[1] = false;// false = do nothing
64 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
65 //----------------------------------------------------------------------------------------------------------------------
66
67 //result1
68 AddResult("ChickenBreastMeat");//add results here
69
70 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
71 m_ResultSetQuantity[0] = -1;//-1 = do nothing
72 m_ResultSetHealth[0] = -1;//-1 = do nothing
73 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
74 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
75 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
76 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
77 m_ResultReplacesIngredient[0] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
78
79 //result2
80 AddResult("ChickenBreastMeat");//add results here
81
82 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
83 m_ResultSetQuantity[1] = -1;//-1 = do nothing
84 m_ResultSetHealth[1] = -1;//-1 = do nothing
85 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
86 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
87 m_ResultToInventory[1] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
88 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
89 m_ResultReplacesIngredient[1] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
90
91 //result3
92 AddResult("Bone");//add results here
93
94 m_ResultSetFullQuantity[2] = false;//true = set full quantity, false = do nothing
95 m_ResultSetQuantity[2] = 2;// -1 = do nothing
96 m_ResultSetHealth[2] = -1;// -1 = do nothing
97 m_ResultInheritsHealth[2] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
98 m_ResultInheritsColor[2] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
99 m_ResultToInventory[2] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
100 m_ResultUseSoftSkills[2] = false;// set 'true' to allow modification of the values by softskills on this result
101 m_ResultReplacesIngredient[2] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
102
103 //----------------------------------------------------------------------------------------------------------------------
104 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [168/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file preparefish.c.

4 {
5
6 }

◆ Init() [169/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file preparerabbit.c.

4 {
5 m_Name = "#skin";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"DeadRabbit");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
37 InsertIngredient(1,"KukriKnife");
38 InsertIngredient(1,"FangeKnife");
39 InsertIngredient(1,"Hacksaw");
40 InsertIngredient(1,"HandSaw");
41 InsertIngredient(1,"KitchenKnife");
42 InsertIngredient(1,"SteakKnife");
43 InsertIngredient(1,"StoneKnife");
44 InsertIngredient(1,"Cleaver");
45 InsertIngredient(1,"CombatKnife");
46 InsertIngredient(1,"HuntingKnife");
47 InsertIngredient(1,"Machete");
48 InsertIngredient(1,"CrudeMachete");
49 InsertIngredient(1,"OrientalMachete");
50 InsertIngredient(1,"WoodAxe");
51 InsertIngredient(1,"Hatchet");
52 InsertIngredient(1,"FirefighterAxe");
53 InsertIngredient(1,"Sword");
54 InsertIngredient(1,"AK_Bayonet");
55 InsertIngredient(1,"M9A1_Bayonet");
56 InsertIngredient(1,"SKS_Bayonet");
57 InsertIngredient(1,"BoneKnife");
58 InsertIngredient(1,"Screwdriver");
59
60 m_IngredientAddHealth[1] = -12;// 0 = do nothing
61 m_IngredientSetHealth[1] = -1; // -1 = do nothing
62 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
63 m_IngredientDestroy[1] = false;// false = do nothing
64 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
65 //----------------------------------------------------------------------------------------------------------------------
66
67 //result1
68 AddResult("RabbitLegMeat");//add results here
69
70 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
71 m_ResultSetQuantity[0] = -1;//-1 = do nothing
72 m_ResultSetHealth[0] = -1;//-1 = do nothing
73 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
74 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
75 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
76 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
77 m_ResultReplacesIngredient[0] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
78
79 //result2
80 AddResult("RabbitLegMeat");//add results here
81
82 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
83 m_ResultSetQuantity[1] = -1;//-1 = do nothing
84 m_ResultSetHealth[1] = -1;//-1 = do nothing
85 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
86 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
87 m_ResultToInventory[1] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
88 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
89 m_ResultReplacesIngredient[1] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
90
91 //result3
92 AddResult("Bone");//add results here
93
94 m_ResultSetFullQuantity[2] = false;//true = set full quantity, false = do nothing
95 m_ResultSetQuantity[2] = -1;// -1 = do nothing
96 m_ResultSetHealth[2] = -1;// -1 = do nothing
97 m_ResultInheritsHealth[2] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
98 m_ResultInheritsColor[2] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
99 m_ResultToInventory[2] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
100 m_ResultUseSoftSkills[2] = false;// set 'true' to allow modification of the values by softskills on this result
101 m_ResultReplacesIngredient[2] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
102
103 //result4
104 AddResult("RabbitPelt");//add results here
105
106 m_ResultSetFullQuantity[3] = false;//true = set full quantity, false = do nothing
107 m_ResultSetQuantity[3] = -1;// -1 = do nothing
108 m_ResultSetHealth[3] = -1;// -1 = do nothing
109 m_ResultInheritsHealth[3] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
110 m_ResultInheritsColor[3] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
111 m_ResultToInventory[3] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
112 m_ResultUseSoftSkills[3] = false;// set 'true' to allow modification of the values by softskills on this result
113 m_ResultReplacesIngredient[3] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
114
115 //----------------------------------------------------------------------------------------------------------------------
116 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [170/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file purifywater.c.

4 {
5 m_Name = "#STR_PurifyWater0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"PurificationTablets");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Pot");//you can insert multiple ingredients this way
37 InsertIngredient(1,"CanisterGasoline");//you can insert multiple ingredients this way
38 InsertIngredient(1,"DisinfectantAlcohol");//you can insert multiple ingredients this way
39 InsertIngredient(1,"Canteen");//you can insert multiple ingredients this way
40 InsertIngredient(1,"WaterBottle");//you can insert multiple ingredients this way
41 InsertIngredient(1,"Vodka");//you can insert multiple ingredients this way
42 InsertIngredient(1,"WaterPouch_ColorBase");//you can insert multiple ingredients this way
43 InsertIngredient(1,"Barrel_ColorBase");//you can insert multiple ingredients this way
44
45 m_IngredientAddHealth[1] = 0;// 0 = do nothing
46 m_IngredientSetHealth[1] = -1; // -1 = do nothing
47 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
48 m_IngredientDestroy[1] = false;// false = do nothing
49 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
50 //----------------------------------------------------------------------------------------------------------------------
51
52 //result1
53 //AddResult("");//add results here
54
55 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
56 m_ResultSetQuantity[0] = -1;//-1 = do nothing
57 m_ResultSetHealth[0] = -1;//-1 = do nothing
58 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
59 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
60 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
61 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
62 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
63 }

References InsertIngredient(), and m_Name.

◆ Init() [171/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 5 of file refueltorch.c.

6 {
7 m_Name = "#STR_RefuelTorch0";
8 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
9 m_AnimationLength = 0.25;//animation length in relative time units
10 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
11
12 //conditions
13 m_MinDamageIngredient[0] = -1;//-1 = disable check
14 m_MaxDamageIngredient[0] = -1;//-1 = disable check
15
16 m_MinQuantityIngredient[0] = -1;//-1 = disable check
17 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
18
19 m_MinDamageIngredient[1] = -1;//-1 = disable check
20 m_MaxDamageIngredient[1] = -1;//-1 = disable check
21
22 m_MinQuantityIngredient[1] = -1;//-1 = disable check
23 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
24 //----------------------------------------------------------------------------------------------------------------------
25
26 //INGREDIENTS
27 //ingredient 1
28 InsertIngredient(0,"Rag");//you can insert multiple ingredients this way
29
30 m_IngredientAddHealth[0] = 0;// 0 = do nothing
31 m_IngredientSetHealth[0] = -1; // -1 = do nothing
32 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
33 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
34 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
35
36 //ingredient 2
37 InsertIngredient(1,"Torch");//you can insert multiple ingredients this way
38 InsertIngredient(1,"LongTorch");//you can insert multiple ingredients this way
39
40 m_IngredientAddHealth[1] = 0;// 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = -1;// 0 = do nothing
43 m_IngredientDestroy[1] = false;// false = do nothing
44 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
45 //----------------------------------------------------------------------------------------------------------------------
46
47 //result1
48 //AddResult("Torch");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58 }

References InsertIngredient(), and m_Name.

◆ Init() [172/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file repairelectric.c.

4 {
5 m_Name = "#repair";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.03;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = 1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"ElectronicRepairKit");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Inventory_Base");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 //AddResult("");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57
58 //----------------------------------------------------------------------------------------------------------------------
59 }

References InsertIngredient(), and m_Name.

◆ Init() [173/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file repairepoxy.c.

4 {
5 m_Name = "#repair";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.03;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = 1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"EpoxyPutty");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Inventory_Base");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 //AddResult("");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57
58 //----------------------------------------------------------------------------------------------------------------------
59 }

References InsertIngredient(), and m_Name.

◆ Init() [174/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file repaireyepatch.c.

4 {
5 m_Name = "#repair";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.03;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = 1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"EyePatch_Improvised");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Rag");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = -1;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 //AddResult("");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57
58 //----------------------------------------------------------------------------------------------------------------------
59 }

References InsertIngredient(), and m_Name.

◆ Init() [175/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file repairplanks.c.

4 {
5 m_Name = "#repair";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.03;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 2;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = 1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"WoodenPlank");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"WoodenCrate");//you can insert multiple ingredients this way
37 InsertIngredient(1,"SeaChest");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
42 m_IngredientDestroy[1] = false;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44
45 //----------------------------------------------------------------------------------------------------------------------
46
47 //result1
48 //AddResult("");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58
59 //----------------------------------------------------------------------------------------------------------------------
60 }

References InsertIngredient(), and m_Name.

◆ Init() [176/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file repairwithrags.c.

4 {
5 m_Name = "#repair";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.03;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = 1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = 1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"HeadCover_Improvised");//you can insert multi ple ingredients this way
28 InsertIngredient(0,"HandsCover_Improvised");//you can insert multiple ingredients this way
29 InsertIngredient(0,"LegsCover_Improvised");//you can insert multiple ingredients this way
30 InsertIngredient(0,"FeetCover_Improvised");//you can insert multiple ingredients this way
31 InsertIngredient(0,"FaceCover_Improvised");//you can insert multiple ingredients this way
32 InsertIngredient(0,"TorsoCover_Improvised");//you can insert multiple ingredients this way
33
34 m_IngredientAddHealth[0] = 0;// 0 = do nothing
35 m_IngredientSetHealth[0] = -1; // -1 = do nothing
36 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
37 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
38 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
39
40 //ingredient 2
41 InsertIngredient(1,"Rag");//you can insert multiple ingredients this way
42
43 m_IngredientAddHealth[1] = 0;// 0 = do nothing
44 m_IngredientSetHealth[1] = -1; // -1 = do nothing
45 m_IngredientAddQuantity[1] = -1;// 0 = do nothing
46 m_IngredientDestroy[1] = false;// false = do nothing
47 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
48
49 //----------------------------------------------------------------------------------------------------------------------
50
51 //result1
52 //AddResult("");//add results here
53
54 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
55 m_ResultSetQuantity[0] = -1;//-1 = do nothing
56 m_ResultSetHealth[0] = -1;//-1 = do nothing
57 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
58 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
59 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
60 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
61 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
62
63 //----------------------------------------------------------------------------------------------------------------------
64 }

References InsertIngredient(), and m_Name.

◆ Init() [177/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file repairwithtape.c.

4 {
5 m_Name = "#repair";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.03;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = 1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"DuctTape");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Inventory_Base");//you can insert multiple ingredients this way
37 InsertIngredient(1,"DefaultWeapon");//you can insert multiple ingredients this way
38 InsertIngredient(1,"DefaultMagazine");//you can insert multiple ingredients this way
39
40 m_IngredientAddHealth[1] = 0;// 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
43 m_IngredientDestroy[1] = false;// false = do nothing
44 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
45
46 //----------------------------------------------------------------------------------------------------------------------
47
48 //result1
49 //AddResult("");//add results here
50
51 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
52 m_ResultSetQuantity[0] = -1;//-1 = do nothing
53 m_ResultSetHealth[0] = -1;//-1 = do nothing
54 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
55 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
56 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
57 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
58 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
59
60 //----------------------------------------------------------------------------------------------------------------------
61 }

References InsertIngredient(), and m_Name.

◆ Init() [178/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file sawoffb95.c.

4 {
5 m_Name = "#STR_sawoffbarrel0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"B95");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Hacksaw");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = -20;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
43
44 //----------------------------------------------------------------------------------------------------------------------
45 /*
46 //result1
47
48 AddResult("SawedoffB95");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58
59 */
60 //----------------------------------------------------------------------------------------------------------------------
61 }

References InsertIngredient(), and m_Name.

◆ Init() [179/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file sawofffamas.c.

4 {
5 m_Name = "#STR_sawoffhandle0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"FAMAS");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Hacksaw");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = -20;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
43
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 /*
48 AddResult("SawedoffMosin9130");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58 */
59
60 //----------------------------------------------------------------------------------------------------------------------
61 }

References InsertIngredient(), and m_Name.

◆ Init() [180/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file sawoffizh18.c.

4 {
5 m_Name = "#STR_sawoffbarrel0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Izh18");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Hacksaw");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = -20;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
43
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 /*
48 AddResult("SawedoffIzh18");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58 */
59
60 //----------------------------------------------------------------------------------------------------------------------
61 }

References InsertIngredient(), and m_Name.

◆ Init() [181/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file sawoffizh18shotgun.c.

4 {
5 m_Name = "#STR_sawoffbarrel0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Izh18Shotgun");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Hacksaw");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = -20;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
43
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 /*
48 AddResult("SawedoffIzh18");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58 */
59
60 //----------------------------------------------------------------------------------------------------------------------
61 }

References InsertIngredient(), and m_Name.

◆ Init() [182/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file sawoffmagnum.c.

4 {
5 m_Name = "#STR_sawoffbarrel0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Magnum");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Hacksaw");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = -20;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
43
44 //----------------------------------------------------------------------------------------------------------------------
45
46 /*
47 //result1
48
49 AddResult("SawedoffMagnum");//add results here
50
51 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
52 m_ResultSetQuantity[0] = -1;//-1 = do nothing
53 m_ResultSetHealth[0] = -1;//-1 = do nothing
54 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
55 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
56 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
57 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
58 m_ResultReplacesIngredient[0] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
59
60
61 //----------------------------------------------------------------------------------------------------------------------
62 */
63 }

References InsertIngredient(), and m_Name.

◆ Init() [183/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file sawoffmosin.c.

4 {
5 m_Name = "#STR_sawoffbarrel0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Mosin9130");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Hacksaw");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = -20;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
43
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 /*
48 AddResult("SawedoffMosin9130");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58 */
59
60 //----------------------------------------------------------------------------------------------------------------------
61 }

References InsertIngredient(), and m_Name.

◆ Init() [184/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file sawoffmosinpainted.c.

4 {
5 m_Name = "#STR_sawoffbarrel0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Mosin9130_Black");//you can insert multiple ingredients this way
28 InsertIngredient(0,"Mosin9130_Green");//you can insert multiple ingredients this way
29 InsertIngredient(0,"Mosin9130_Camo");//you can insert multiple ingredients this way
30
31 m_IngredientAddHealth[0] = 0;// 0 = do nothing
32 m_IngredientSetHealth[0] = -1; // -1 = do nothing
33 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
34 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
35 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
36
37 //ingredient 2
38 InsertIngredient(1,"Hacksaw");//you can insert multiple ingredients this way
39
40 m_IngredientAddHealth[1] = -20;// 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
43 m_IngredientDestroy[1] = false;// false = do nothing
44 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
45
46 //----------------------------------------------------------------------------------------------------------------------
47
48 //result1
49 /*
50 AddResult("SawedoffMosin9130_");//add results here
51
52 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
53 m_ResultSetQuantity[0] = -1;//-1 = do nothing
54 m_ResultSetHealth[0] = -1;//-1 = do nothing
55 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
56 m_ResultInheritsColor[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
57 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
58 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
59 m_ResultReplacesIngredient[0] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
60 */
61
62 //----------------------------------------------------------------------------------------------------------------------
63 }

References InsertIngredient(), and m_Name.

◆ Init() [185/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file sawoffshotgunizh43.c.

4 {
5 m_Name = "#STR_sawoffbarrel0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Izh43Shotgun");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Hacksaw");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = -20;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
43
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 /*
48 AddResult("SawedoffIzh43Shotgun");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58 */
59
60 //----------------------------------------------------------------------------------------------------------------------
61 }

References InsertIngredient(), and m_Name.

◆ Init() [186/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file sawwoodenlog.c.

4 {
5 m_Name = "#STR_sawwoodenlog0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 2;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"WoodenLog");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Hacksaw");//you can insert multiple ingredients this way
37 InsertIngredient(1,"HandSaw");//you can insert multiple ingredients this way
38 InsertIngredient(1,"WoodAxe");//you can insert multiple ingredients this way
39 InsertIngredient(1,"Hatchet");//you can insert multiple ingredients this way
40 InsertIngredient(1,"FirefighterAxe");//you can insert multiple ingredients this way
41
42 m_IngredientAddHealth[1] = -10;// 0 = do nothing
43 m_IngredientSetHealth[1] = -1; // -1 = do nothing
44 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
45 m_IngredientDestroy[1] = false;// false = do nothing
46 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
47
48 //----------------------------------------------------------------------------------------------------------------------
49
50 //result1
51 AddResult("Firewood");//add results here
52
53 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
54 m_ResultSetQuantity[0] = -1;//-1 = do nothing
55 m_ResultSetHealth[0] = -1;//-1 = do nothing
56 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
57 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
58 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
59 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
60 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
61
62 //result2
63 AddResult("Firewood");//add results here
64
65 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
66 m_ResultSetQuantity[1] = -1;//-1 = do nothing
67 m_ResultSetHealth[1] = -1;//-1 = do nothing
68 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
69 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
70 m_ResultToInventory[1] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
71 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
72 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
73
74 //result3
75 AddResult("Firewood");//add results here
76
77 m_ResultSetFullQuantity[2] = false;//true = set full quantity, false = do nothing
78 m_ResultSetQuantity[2] = -1;//-1 = do nothing
79 m_ResultSetHealth[2] = -1;//-1 = do nothing
80 m_ResultInheritsHealth[2] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
81 m_ResultInheritsColor[2] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
82 m_ResultToInventory[2] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
83 m_ResultUseSoftSkills[2] = false;// set 'true' to allow modification of the values by softskills on this result
84 m_ResultReplacesIngredient[2] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value //----------------------------------------------------------------------------------------------------------------------
85 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [187/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file sharpenbroom.c.

4 {
5 m_Name = "#sharpen";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
15
20
21
22 //ingredient 1
23 InsertIngredient(0,"Broom");//you can insert multiple ingredients this way
24
26 m_IngredientSetHealth[0] = -1; // -1 = do nothing
29 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
30
31 //ingredient 2
32 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
33 InsertIngredient(1,"KukriKnife");
34 InsertIngredient(1,"FangeKnife");
35 InsertIngredient(1,"Hacksaw");
36 InsertIngredient(1,"KitchenKnife");
37 InsertIngredient(1,"SteakKnife");
38 InsertIngredient(1,"HayHook");
39 InsertIngredient(1,"StoneKnife");
40 InsertIngredient(1,"Cleaver");
41 InsertIngredient(1,"CombatKnife");
42 InsertIngredient(1,"HuntingKnife");
43 InsertIngredient(1,"Machete");
44 InsertIngredient(1,"CrudeMachete");
45 InsertIngredient(1,"OrientalMachete");
46 InsertIngredient(1,"Screwdriver");
47 InsertIngredient(1,"Crowbar");
48 InsertIngredient(1,"Pickaxe");
49 InsertIngredient(1,"WoodAxe");
50 InsertIngredient(1,"Hatchet");
51 InsertIngredient(1,"FirefighterAxe");
52 InsertIngredient(1,"Sword");
53 InsertIngredient(1,"AK_Bayonet");
54 InsertIngredient(1,"M9A1_Bayonet");
55 InsertIngredient(1,"Mosin_Bayonet");
56 InsertIngredient(1,"SKS_Bayonet");
57 InsertIngredient(1,"BoneKnife");
58
59 m_IngredientAddHealth[1] = -12;
60 m_IngredientSetHealth[1] = -1; // -1 = do nothing
63 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
64
65 // crafting multiple results
66 //AddResult("CombatKnife");//additional results, must be processed individually in Do method (as "results" parameter)
67
68 //result1
69 AddResult("WoodenStick");//add results here
70
71 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
72 m_ResultSetQuantity[0] = 3;//-1 = do nothing
73 m_ResultSetHealth[0] = -1;//-1 = do nothing
74 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
75 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
76 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
77 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
78 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
79
80 //result2
81 AddResult("SharpWoodenStick");//single result
82
85 m_ResultSetHealth[1] = -1;
86 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
87 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
88 m_ResultToInventory[1] = -2;
89 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
90 m_ResultReplacesIngredient[1] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
91 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [188/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file sharpenlongstick.c.

4 {
5 m_Name = "#sharpen";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
15
20
21
22 //ingredient 1
23 InsertIngredient(0,"LongWoodenStick");//you can insert multiple ingredients this way
24
26 m_IngredientSetHealth[0] = -1; // -1 = do nothing
29 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
30
31 //ingredient 2
32 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
33 InsertIngredient(1,"KukriKnife");
34 InsertIngredient(1,"FangeKnife");
35 InsertIngredient(1,"Hacksaw");
36 InsertIngredient(1,"KitchenKnife");
37 InsertIngredient(1,"SteakKnife");
38 InsertIngredient(1,"HayHook");
39 InsertIngredient(1,"StoneKnife");
40 InsertIngredient(1,"Cleaver");
41 InsertIngredient(1,"CombatKnife");
42 InsertIngredient(1,"HuntingKnife");
43 InsertIngredient(1,"Machete");
44 InsertIngredient(1,"CrudeMachete");
45 InsertIngredient(1,"OrientalMachete");
46 InsertIngredient(1,"Screwdriver");
47 InsertIngredient(1,"Crowbar");
48 InsertIngredient(1,"Pickaxe");
49 InsertIngredient(1,"WoodAxe");
50 InsertIngredient(1,"Hatchet");
51 InsertIngredient(1,"FirefighterAxe");
52 InsertIngredient(1,"Sword");
53 InsertIngredient(1,"AK_Bayonet");
54 InsertIngredient(1,"M9A1_Bayonet");
55 InsertIngredient(1,"Mosin_Bayonet");
56 InsertIngredient(1,"SKS_Bayonet");
57 InsertIngredient(1,"BoneKnife");
58
59 m_IngredientAddHealth[1] = -12;
60 m_IngredientSetHealth[1] = -1; // -1 = do nothing
63 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
64
65 // crafting multiple results
66 //AddResult("CombatKnife");//additional results, must be processed individually in Do method (as "results" parameter)
67
68
69 AddResult("SharpWoodenStick");//single result
70
71 m_ResultSetFullQuantity[0] = false;
73 m_ResultSetHealth[0] = -1;
74 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
75 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
76 m_ResultToInventory[0] = -2;
77 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
78 m_ResultReplacesIngredient[0] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
79 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [189/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file sharpenmelee.c.

4 {
5 m_Name = "#sharpen";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = -0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = 1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Whetstone");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Inventory_Base");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 //AddResult("");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57
58 //----------------------------------------------------------------------------------------------------------------------
59 }

References InsertIngredient(), and m_Name.

◆ Init() [190/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file sharpenstick.c.

4 {
5 m_Name = "#sharpen";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
15
20
21
22 //ingredient 1
23 InsertIngredient(0,"WoodenStick");//you can insert multiple ingredients this way
24
26 m_IngredientSetHealth[0] = -1; // -1 = do nothing
29 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
30
31 //ingredient 2
32 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
33 InsertIngredient(1,"KukriKnife");
34 InsertIngredient(1,"FangeKnife");
35 InsertIngredient(1,"Hacksaw");
36 InsertIngredient(1,"KitchenKnife");
37 InsertIngredient(1,"SteakKnife");
38 InsertIngredient(1,"HayHook");
39 InsertIngredient(1,"StoneKnife");
40 InsertIngredient(1,"Cleaver");
41 InsertIngredient(1,"CombatKnife");
42 InsertIngredient(1,"HuntingKnife");
43 InsertIngredient(1,"Machete");
44 InsertIngredient(1,"CrudeMachete");
45 InsertIngredient(1,"OrientalMachete");
46 InsertIngredient(1,"Screwdriver");
47 InsertIngredient(1,"Crowbar");
48 InsertIngredient(1,"Pickaxe");
49 InsertIngredient(1,"WoodAxe");
50 InsertIngredient(1,"Hatchet");
51 InsertIngredient(1,"FirefighterAxe");
52 InsertIngredient(1,"Sword");
53 InsertIngredient(1,"AK_Bayonet");
54 InsertIngredient(1,"M9A1_Bayonet");
55 InsertIngredient(1,"Mosin_Bayonet");
56 InsertIngredient(1,"SKS_Bayonet");
57 InsertIngredient(1,"BoneKnife");
58
59 m_IngredientAddHealth[1] = -12;
60 m_IngredientSetHealth[1] = -1; // -1 = do nothing
63 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
64
65 // crafting multiple results
66 //AddResult("CombatKnife");//additional results, must be processed individually in Do method (as "results" parameter)
67
68
69 AddResult("Ammo_SharpStick");//single result
70
73 m_ResultSetHealth[0] = -1;
74 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
75 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
76 m_ResultToInventory[0] = -2;
77 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
78 m_ResultReplacesIngredient[0] = 0;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
79 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [191/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file splitbroom.c.

4 {
5 m_Name = "#STR_split0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Broom");//you can insert multiple ingredients this way
28 InsertIngredient(0,"Broom_Birch");//you can insert multiple ingredients this way
29
30 m_IngredientAddHealth[0] = 0;// 0 = do nothing
31 m_IngredientSetHealth[0] = -1; // -1 = do nothing
32 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
33 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
34 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
35
36 //ingredient 2
37 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
38 InsertIngredient(1,"KukriKnife");
39 InsertIngredient(1,"FangeKnife");
40 InsertIngredient(1,"Hacksaw");
41 InsertIngredient(1,"HandSaw");
42 InsertIngredient(1,"KitchenKnife");
43 InsertIngredient(1,"SteakKnife");
44 InsertIngredient(1,"HayHook");
45 InsertIngredient(1,"StoneKnife");
46 InsertIngredient(1,"Cleaver");
47 InsertIngredient(1,"CombatKnife");
48 InsertIngredient(1,"HuntingKnife");
49 InsertIngredient(1,"Machete");
50 InsertIngredient(1,"CrudeMachete");
51 InsertIngredient(1,"OrientalMachete");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -4;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69
70 //----------------------------------------------------------------------------------------------------------------------
71
72 //result1
73 AddResult("WoodenStick");//add results here
74
75 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
76 m_ResultSetQuantity[0] = 3;//-1 = do nothing
77 m_ResultSetHealth[0] = -1;//-1 = do nothing
78 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
79 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
80 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
81 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
82 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
83
84
85 //result2
86 AddResult("LongWoodenStick");//add results here
87
88 m_ResultSetFullQuantity[1] = true;//true = set full quantity, false = do nothing
89 m_ResultSetQuantity[1] = -1;//-1 = do nothing
90 m_ResultSetHealth[1] = -1;//-1 = do nothing
91 m_ResultInheritsHealth[1] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
92 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
93 m_ResultToInventory[1] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
94 m_ResultUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this result
95 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
96 //----------------------------------------------------------------------------------------------------------------------
97 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [192/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file splitfirewood.c.

4 {
5 m_Name = "#STR_split0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Firewood");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Hacksaw");
37 InsertIngredient(1,"HandSaw");
38 InsertIngredient(1,"Pickaxe");
39 InsertIngredient(1,"WoodAxe");
40 InsertIngredient(1,"Hatchet");
41 InsertIngredient(1,"FirefighterAxe");
42
43 m_IngredientAddHealth[1] = -4;// 0 = do nothing
44 m_IngredientSetHealth[1] = -1; // -1 = do nothing
45 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
46 m_IngredientDestroy[1] = false;// false = do nothing
47 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
48
49 //----------------------------------------------------------------------------------------------------------------------
50
51 //result1
52 AddResult("WoodenStick");//add results here
53
54 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
55 m_ResultSetQuantity[0] = 3;//-1 = do nothing
56 m_ResultSetHealth[0] = -1;//-1 = do nothing
57 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
58 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
59 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
60 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
61 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
62
63
64 //----------------------------------------------------------------------------------------------------------------------
65 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [193/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file splitlongwoodenstick.c.

4 {
5 m_Name = "#STR_split0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"LongWoodenStick");//you can insert multiple ingredients this way
28 InsertIngredient(0,"SharpWoodenStick");//you can insert multiple ingredients this way
29
30 m_IngredientAddHealth[0] = 0;// 0 = do nothing
31 m_IngredientSetHealth[0] = -1; // -1 = do nothing
32 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
33 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
34 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
35
36 //ingredient 2
37 InsertIngredient(1,"Sickle");//you can insert multiple ingredients this way
38 InsertIngredient(1,"KukriKnife");
39 InsertIngredient(1,"FangeKnife");
40 InsertIngredient(1,"Hacksaw");
41 InsertIngredient(1,"HandSaw");
42 InsertIngredient(1,"KitchenKnife");
43 InsertIngredient(1,"SteakKnife");
44 InsertIngredient(1,"HayHook");
45 InsertIngredient(1,"StoneKnife");
46 InsertIngredient(1,"Cleaver");
47 InsertIngredient(1,"CombatKnife");
48 InsertIngredient(1,"HuntingKnife");
49 InsertIngredient(1,"Machete");
50 InsertIngredient(1,"CrudeMachete");
51 InsertIngredient(1,"OrientalMachete");
52 InsertIngredient(1,"Crowbar");
53 InsertIngredient(1,"Pickaxe");
54 InsertIngredient(1,"WoodAxe");
55 InsertIngredient(1,"Hatchet");
56 InsertIngredient(1,"FirefighterAxe");
57 InsertIngredient(1,"Sword");
58 InsertIngredient(1,"AK_Bayonet");
59 InsertIngredient(1,"M9A1_Bayonet");
60 InsertIngredient(1,"Mosin_Bayonet");
61 InsertIngredient(1,"SKS_Bayonet");
62 InsertIngredient(1,"BoneKnife");
63
64 m_IngredientAddHealth[1] = -4;// 0 = do nothing
65 m_IngredientSetHealth[1] = -1; // -1 = do nothing
66 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
67 m_IngredientDestroy[1] = false;// false = do nothing
68 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
69
70 //----------------------------------------------------------------------------------------------------------------------
71
72 //result1
73 AddResult("WoodenStick");//add results here
74
75 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
76 m_ResultSetQuantity[0] = 3;//-1 = do nothing
77 m_ResultSetHealth[0] = -1;//-1 = do nothing
78 m_ResultInheritsHealth[0] = 0;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
79 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
80 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
81 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
82 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
83
84 //----------------------------------------------------------------------------------------------------------------------
85 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [194/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file splitstones.c.

4 {
5 m_Name = "#STR_split0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = 1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Stone");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = -1;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Pickaxe");//you can insert multiple ingredients this way
37 InsertIngredient(1,"SledgeHammer");//you can insert multiple ingredients this way
38 InsertIngredient(1,"Hammer");//you can insert multiple ingredients this way
39
40 m_IngredientAddHealth[1] = -4;// 0 = do nothing
41 m_IngredientSetHealth[1] = -1; // -1 = do nothing
42 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
43 m_IngredientDestroy[1] = false;// false = do nothing
44 m_IngredientUseSoftSkills[1] = true;// set 'true' to allow modification of the values by softskills on this ingredient
45 //----------------------------------------------------------------------------------------------------------------------
46
47 //result1
48 AddResult("SmallStone");//add results here
49
50 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
51 m_ResultSetQuantity[0] = -1;//-1 = do nothing
52 m_ResultSetHealth[0] = -1;//-1 = do nothing
53 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
54 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
55 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
56 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
57 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
58
59 //result2
60 AddResult("SmallStone");//add results here
61
62 m_ResultSetFullQuantity[1] = false;//true = set full quantity, false = do nothing
63 m_ResultSetQuantity[1] = -1;//-1 = do nothing
64 m_ResultSetHealth[1] = -1;//-1 = do nothing
65 m_ResultInheritsHealth[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
66 m_ResultInheritsColor[1] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
67 m_ResultToInventory[1] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
68 m_ResultUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this result
69 m_ResultReplacesIngredient[1] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
70
71 //result3
72 AddResult("SmallStone");//add results here
73
74 m_ResultSetFullQuantity[2] = false;//true = set full quantity, false = do nothing
75 m_ResultSetQuantity[2] = -1;//-1 = do nothing
76 m_ResultSetHealth[2] = -1;//-1 = do nothing
77 m_ResultInheritsHealth[2] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
78 m_ResultInheritsColor[2] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
79 m_ResultToInventory[2] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
80 m_ResultUseSoftSkills[2] = false;// set 'true' to allow modification of the values by softskills on this result
81 m_ResultReplacesIngredient[2] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
82 }

References AddResult(), InsertIngredient(), and m_Name.

◆ Init() [195/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file test.c.

4 {
5 m_Name = "Test 3 ingredients";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 /*
24 m_MinDamageIngredient[2] = 1;//-1 = disable check
25 m_MaxDamageIngredient[2] = -1;//-1 = disable check
26
27 m_MinQuantityIngredient[2] = -1;//-1 = disable check
28 m_MaxQuantityIngredient[2] = -1;//-1 = disable check
29 */
30 //----------------------------------------------------------------------------------------------------------------------
31
32 //INGREDIENTS
33 //ingredient 1
34 InsertIngredient(0,"BloodTestKit");//you can insert multiple ingredients this way
35
36 m_IngredientAddHealth[0] = 0;// 0 = do nothing
37 m_IngredientSetHealth[0] = -1; // -1 = do nothing
38 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
39 m_IngredientDestroy[0] = true;//true = destroy, false = do nothing
40 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
41
42 //ingredient 2
43 InsertIngredient(1,"BloodSyringe");//you can insert multiple ingredients this way
44 m_IngredientAddHealth[1] = 0;// 0 = do nothing
45 m_IngredientSetHealth[1] = -1; // -1 = do nothing
46 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
47 m_IngredientDestroy[1] = false;// false = do nothing
48 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
49
50 /*
51 //ingredient 3
52 InsertIngredient(2,"SalineBagIV");//you can insert multiple ingredients this way
53
54 m_IngredientAddHealth[2] = 0;// 0 = do nothing
55 m_IngredientSetHealth[2] = -1; // -1 = do nothing
56 m_IngredientAddQuantity[2] = 0;// 0 = do nothing
57 m_IngredientDestroy[2] = false;// false = do nothing
58 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
59 */
60 //----------------------------------------------------------------------------------------------------------------------
61
62 //result1
63 //AddResult("");//add results here
64
65 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
66 m_ResultSetQuantity[0] = -1;//-1 = do nothing
67 m_ResultSetHealth[0] = -1;//-1 = do nothing
68 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
69 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
70 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
71 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
72 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
73 }

References InsertIngredient(), and m_Name.

◆ Init() [196/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file upgradetorchwithlard.c.

4 {
5 m_Name = "#STR_UpgradeTorchWithLard0";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
11 m_MinDamageIngredient[0] = -1;//-1 = disable check
12 m_MaxDamageIngredient[0] = -1;//-1 = disable check
13
14 m_MinQuantityIngredient[0] = -1;//-1 = disable check
15 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
16
17 m_MinDamageIngredient[1] = -1;//-1 = disable check
18 m_MaxDamageIngredient[1] = -1;//-1 = disable check
19
20 m_MinQuantityIngredient[1] = -1;//-1 = disable check
21 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
22 //----------------------------------------------------------------------------------------------------------------------
23
24 //INGREDIENTS
25 //ingredient 1
26 InsertIngredient(0,"Lard");//you can insert multiple ingredients this way
27
28 m_IngredientAddHealth[0] = 0;// 0 = do nothing
29 m_IngredientSetHealth[0] = -1; // -1 = do nothing
30 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
31 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
32 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
33
34 //ingredient 2
35 InsertIngredient(1,"Torch");//you can insert multiple ingredients this way
36 InsertIngredient(1,"LongTorch");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = 0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43 //----------------------------------------------------------------------------------------------------------------------
44
45 //result1
46 //AddResult("Torch");//add results here
47
48 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
49 m_ResultSetQuantity[0] = -1;//-1 = do nothing
50 m_ResultSetHealth[0] = -1;//-1 = do nothing
51 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
52 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
53 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
54 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
55 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
56 }

References InsertIngredient(), and m_Name.

◆ Init() [197/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file upgradetorchwithliquidfuel.c.

4 {
5 m_Name = "#str_upgrade_torch_fuel";
6 m_IsInstaRecipe = false;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1;//animation length in relative time units
8 m_Specialty = 0.02;// value > 0 for roughness, value < 0 for precision
9
10 //conditions
11 m_MinDamageIngredient[0] = -1;//-1 = disable check
12 m_MaxDamageIngredient[0] = -1;//-1 = disable check
13
14 m_MinQuantityIngredient[0] = -1;//-1 = disable check
15 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
16
17 m_MinDamageIngredient[1] = -1;//-1 = disable check
18 m_MaxDamageIngredient[1] = -1;//-1 = disable check
19
20 m_MinQuantityIngredient[1] = -1;//-1 = disable check
21 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
22 //----------------------------------------------------------------------------------------------------------------------
23
24 //INGREDIENTS
25 //ingredient 1
26 InsertIngredient(0,"Bottle_Base");
27 InsertIngredient(0,"Barrel_ColorBase");
28
29 m_IngredientAddHealth[0] = 0;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Torch");//you can insert multiple ingredients this way
37 InsertIngredient(1,"LongTorch");//you can insert multiple ingredients this way
38
39 m_IngredientAddHealth[1] = 0;// 0 = do nothing
40 m_IngredientSetHealth[1] = -1; // -1 = do nothing
41 m_IngredientAddQuantity[1] = -1;// 0 = do nothing
42 m_IngredientDestroy[1] = false;// false = do nothing
43 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 //AddResult("Torch");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -2;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57 }

References InsertIngredient(), and m_Name.

◆ Init() [198/198]

override void RecipeBase::Init ( )
inlineprivate

Definition at line 3 of file writeletter.c.

4 {
5 m_Name = "#write_note";
6 m_IsInstaRecipe = true;//should this recipe be performed instantly without animation
7 m_AnimationLength = 1.5;//animation length in relative time units
8 m_Specialty = -0.01;// value > 0 for roughness, value < 0 for precision
9
10
11 //conditions
12 m_MinDamageIngredient[0] = -1;//-1 = disable check
13 m_MaxDamageIngredient[0] = 3;//-1 = disable check
14
15 m_MinQuantityIngredient[0] = -1;//-1 = disable check
16 m_MaxQuantityIngredient[0] = -1;//-1 = disable check
17
18 m_MinDamageIngredient[1] = -1;//-1 = disable check
19 m_MaxDamageIngredient[1] = 3;//-1 = disable check
20
21 m_MinQuantityIngredient[1] = -1;//-1 = disable check
22 m_MaxQuantityIngredient[1] = -1;//-1 = disable check
23 //----------------------------------------------------------------------------------------------------------------------
24
25 //INGREDIENTS
26 //ingredient 1
27 InsertIngredient(0,"Pen_ColorBase");//you can insert multiple ingredients this way
28
29 m_IngredientAddHealth[0] = -10;// 0 = do nothing
30 m_IngredientSetHealth[0] = -1; // -1 = do nothing
31 m_IngredientAddQuantity[0] = 0;// 0 = do nothing
32 m_IngredientDestroy[0] = false;//true = destroy, false = do nothing
33 m_IngredientUseSoftSkills[0] = true;// set 'true' to allow modification of the values by softskills on this ingredient
34
35 //ingredient 2
36 InsertIngredient(1,"Paper");//you can insert multiple ingredients this way
37
38 m_IngredientAddHealth[1] = -0;// 0 = do nothing
39 m_IngredientSetHealth[1] = -1; // -1 = do nothing
40 m_IngredientAddQuantity[1] = 0;// 0 = do nothing
41 m_IngredientDestroy[1] = false;// false = do nothing
42 m_IngredientUseSoftSkills[1] = false;// set 'true' to allow modification of the values by softskills on this ingredient
43
44 //----------------------------------------------------------------------------------------------------------------------
45
46 //result1
47 //AddResult("");//add results here
48
49 m_ResultSetFullQuantity[0] = false;//true = set full quantity, false = do nothing
50 m_ResultSetQuantity[0] = -1;//-1 = do nothing
51 m_ResultSetHealth[0] = -1;//-1 = do nothing
52 m_ResultInheritsHealth[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result will inherit health from ingredient number (value);(value) == -2 means this result will inherit health from all ingredients averaged(result_health = combined_health_of_ingredients / number_of_ingredients)
53 m_ResultInheritsColor[0] = -1;// (value) == -1 means do nothing; a (value) >= 0 means this result classname will be a composite of the name provided in AddResult method and config value "color" of ingredient (value)
54 m_ResultToInventory[0] = -2;//(value) == -2 spawn result on the ground;(value) == -1 place anywhere in the players inventory, (value) >= 0 means switch position with ingredient number(value)
55 m_ResultUseSoftSkills[0] = false;// set 'true' to allow modification of the values by softskills on this result
56 m_ResultReplacesIngredient[0] = -1;// value == -1 means do nothing; a value >= 0 means this result will transfer item propertiesvariables, attachments etc.. from an ingredient value
57
58 //----------------------------------------------------------------------------------------------------------------------
59 }

References InsertIngredient(), and m_Name.

◆ InsertIngredient()

void RecipeBase::InsertIngredient ( int  index,
string  ingredient 
)
inlineprivate

Definition at line 133 of file recipebase.c.

134 {
135 array<string> ptr = m_Ingredients[index];
136 ptr.Insert(ingredient);
137 }

References m_Ingredients.

Referenced by Init().

◆ IsInstaRecipe()

bool RecipeBase::IsInstaRecipe ( )
inlineprivate

Definition at line 164 of file recipebase.c.

165 {
166 return m_IsInstaRecipe;
167 }

References m_IsInstaRecipe.

◆ IsItemInRecipe()

bool RecipeBase::IsItemInRecipe ( string  item)
inlineprivate

Definition at line 599 of file recipebase.c.

600 {
601 for(int i = 0; i < MAX_NUMBER_OF_INGREDIENTS; i++)
602 {
604
605 for(int x = 0; x < ptr.Count(); x++)
606 {
607 if( ptr.Get(x) == item ) return true;
608 }
609 }
610 return false;
611 }

References m_Ingredients, MAX_NUMBER_OF_INGREDIENTS, and x.

◆ IsRecipeAnywhere()

bool RecipeBase::IsRecipeAnywhere ( )
inlineprivate

Definition at line 85 of file recipebase.c.

86 {
88 }

References m_AnywhereInInventory.

Referenced by CheckRecipe().

◆ OnSelected() [1/2]

void RecipeBase::OnSelected ( ItemBase  item1,
ItemBase  item2,
PlayerBase  player 
)
inlineprivate

Definition at line 510 of file recipebase.c.

511 {
512
513 }

Referenced by OnSelectedRecipe().

◆ OnSelected() [2/2]

override void RecipeBase::OnSelected ( ItemBase  item1,
ItemBase  item2,
PlayerBase  player 
)
inlineprivate

Definition at line 59 of file loadmagazine.c.

60 {
61 /*if( GetGame().IsServer() && GetGame().IsMultiplayer() ) return;
62 ItemBase ammo;
63 ActionTarget actionTarget;
64 if( item1.IsKindOf("Ammunition_Base") )
65 {
66 ammo = item1;
67 ActionManagerClient mngr = player.GetActionManager();
68
69 actionTarget = new ActionTarget(item1, -1, vector.Zero, -1);
70 mngr.InjectContinuousAction(AT_LOAD_MAGAZINE,actionTarget,player.GetItemInHands());
71 }
72 else
73 {
74 ammo = item2;
75 actionTarget = new ActionTarget(item2, -1, vector.Zero, -1);
76 mngr.InjectContinuousAction(AT_LOAD_MAGAZINE,actionTarget,player.GetItemInHands());
77 }
78 */
79 }

◆ OnSelectedRecipe()

void RecipeBase::OnSelectedRecipe ( ItemBase  item1,
ItemBase  item2,
PlayerBase  player 
)
inlineprivate

Definition at line 499 of file recipebase.c.

500 {
501 if( item1 == NULL || item2 == NULL )
502 {
503 Error("CheckRecipe: recipe invalid, at least one of the ingredients is NULL");
504 //Debug.Log("recipe invalid, at least one of the ingredients is NULL","recipes");
505 return;
506 }
507 OnSelected(item1,item2,player);
508 }
void OnSelected(ItemBase item1, ItemBase item2, PlayerBase player)
Definition: recipebase.c:510

References Error(), and OnSelected().

◆ PerformRecipe()

void RecipeBase::PerformRecipe ( ItemBase  item1,
ItemBase  item2,
PlayerBase  player 
)
inlineprivate

Definition at line 516 of file recipebase.c.

517 {
518 if( item1 == NULL || item2 == NULL )
519 {
520 Error("PerformRecipe: recipe invalid, at least one of the ingredients is NULL");
521 Debug.Log("PerformRecipe: at least one of the ingredients is NULL","recipes");
522 }
523 /*
524 m_IngredientsSorted[0] = item1;
525 m_IngredientsSorted[1] = item2;
526 */
527
528 /*
529 Debug.Log("PerformRecipe Ingredient 1: "+ToString(item1.Ptr().GetType()),"recipes");
530 Debug.Log("PerformRecipe Ingredient 2: "+ToString(item2.Ptr().GetType()),"recipes");
531 */
532 if( CheckRecipe(item1,item2,player) )
533 {
534 ref array<ItemBase> spawned_objects = new array<ItemBase>;
535 SpawnItems(m_IngredientsSorted, player,spawned_objects );
536
537 ApplyModificationsResults(m_IngredientsSorted, spawned_objects, NULL, player);
539
541
542 Do( m_IngredientsSorted, player, spawned_objects, m_Specialty );
543
544
546 }
547 else
548 {
549 Debug.Log("CheckRecipe failed on server","recipes");
550 }
551 }
void DeleleIngredientsPass()
Definition: recipebase.c:341
void Do(ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
Definition: recipebase.c:570
void ApplyModificationsIngredients(ItemBase sorted[], PlayerBase player)
Definition: recipebase.c:352
void ApplySoftSkillsSpecialty(PlayerBase player)
Definition: recipebase.c:553
void ApplyModificationsResults(ItemBase sorted[], array< ItemBase > results, ItemBase result, PlayerBase player)
Definition: recipebase.c:234
bool CheckRecipe(ItemBase item1, ItemBase item2, PlayerBase player)
Definition: recipebase.c:474
void SpawnItems()
Definition: missionbase.c:680

References ApplyModificationsIngredients(), ApplyModificationsResults(), ApplySoftSkillsSpecialty(), CheckRecipe(), DeleleIngredientsPass(), Do(), Error(), Debug::Log(), m_IngredientsSorted, m_Specialty, and SpawnItems().

Referenced by PluginRecipesManagerBase::PerformRecipeServer().

◆ RemoveIngredient()

void RecipeBase::RemoveIngredient ( int  index,
string  ingredient 
)
inlineprivate

Definition at line 139 of file recipebase.c.

140 {
141 array<string> ptr = m_Ingredients[index];
142 for(int i = 0; i < ptr.Count(); i++)
143 {
144 if(ptr[i] == ingredient)
145 {
146 ptr.Remove(i);
147 return;
148 }
149 }
150 }

References m_Ingredients.

◆ SetID()

void RecipeBase::SetID ( int  id)
inlineprivate

Definition at line 581 of file recipebase.c.

582 {
583 m_ID = id;
584 }

References m_ID.

Referenced by PluginRecipesManagerBase::RegisterRecipe().

◆ SpawnItems()

void RecipeBase::SpawnItems ( ItemBase  ingredients[],
PlayerBase  player,
array< ItemBase spawned_objects 
)
inlineprivate

Definition at line 172 of file recipebase.c.

173 {
174 //vector item_position = player.GetPosition() + ( player.GetDirection() * 1 );
175 //Debug.Log("SpawnItems called","recipes");
176 spawned_objects.Clear();//just to make sure
177 EntityAI object = NULL;
178
179 for(int i = 0; i < m_NumberOfResults; i++)
180 {
181 string item_to_spawn = m_ItemsToCreate[i];
182
183 if( m_ResultInheritsColor[i] != -1 )
184 {
185 ItemBase item = ingredients[m_ResultInheritsColor[i]];
186 //string class_name = item.GetType();
187 string color = item.ConfigGetString("color");
188 string new_class_name = m_ItemsToCreate[i] + color;
189 item_to_spawn = new_class_name;
190 }
191
192 if( m_ResultToInventory[i] == -1 )
193 {
194 Debug.Log(" = "+m_ResultToInventory[i].ToString(),"recipes");
195 /*
196 InventoryLocation inv_loc = new InventoryLocation;
197 if (player.GetInventory().FindFirstFreeLocationForNewEntity(item_to_spawn, FindInventoryLocationType.ANY, inv_loc))
198 {
199 object = SpawnItemOnLocation(item_to_spawn, inv_loc, false);
200 }
201 */
202 object = player.GetInventory().CreateInInventory(item_to_spawn);
203 }
204 else if (m_ResultToInventory[i] >= 0)
205 {
206 /*
207 object = player.SpawnEntityOnGroundOnCursorDir(item_to_spawn, 0.5);
208
209 ItemBase item_swap_with = ingredients[m_ResultToInventory[i]];
210 player.SwapEntities(true, item_swap_with, EntityAI.Cast(object));
211 */
212 }
213 else if ( m_ResultToInventory[i] == -2 )
214 {
215 object = player.GetInventory().CreateEntityInCargo(item_to_spawn);
216 }
217 if( !object )
218 {
219 //spawning in inventory failed, spawning on the ground instead.....
220 object = player.SpawnEntityOnGroundOnCursorDir(item_to_spawn, m_ResultSpawnDistance[i]);
221 if( !object)
222 {
223 Error("failed to spawn entity "+item_to_spawn+" , make sure the classname exists and item can be spawned");
224 }
225 }
226 spawned_objects.Insert(ItemBase.Cast(object));
227 //Debug.Log("spawning item "+item_to_spawn,"recipes");
228 object = null;
229 }
230
231 }

References Error(), Debug::Log(), m_ItemsToCreate, m_NumberOfResults, m_ResultInheritsColor, m_ResultSpawnDistance, m_ResultToInventory, and ToString().

◆ TransferItemsToNew()

void RecipeBase::TransferItemsToNew ( PlayerBase  player,
ItemBase  barrel_old,
ItemBase  barrel_new 
)
inlineprivate

Definition at line 91 of file pokeholesbarrel.c.

92 {
93 //TODO bugfix, only drops items now
94 MiscGameplayFunctions.TransferInventory(barrel_old,barrel_new,player);
95 //player.m_UpdateInventoryForced = true;
96 //player.SetSynchDirty();
97 }

Member Data Documentation

◆ m_AnimationLength

float RecipeBase::m_AnimationLength = 1
private

Definition at line 21 of file recipebase.c.

Referenced by GetLengthInSecs().

◆ m_AnywhereInInventory

bool RecipeBase::m_AnywhereInInventory
private

Definition at line 25 of file recipebase.c.

Referenced by IsRecipeAnywhere().

◆ m_ID

int RecipeBase::m_ID
private

Definition at line 19 of file recipebase.c.

Referenced by GetID(), and SetID().

◆ m_IngredientAddHealth

float RecipeBase::m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS]
private

Definition at line 34 of file recipebase.c.

Referenced by ApplyModificationsIngredients().

◆ m_IngredientAddQuantity

float RecipeBase::m_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS]
private

Definition at line 35 of file recipebase.c.

Referenced by ApplyModificationsIngredients().

◆ m_IngredientDestroy

bool RecipeBase::m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]
private

Definition at line 37 of file recipebase.c.

Referenced by ApplyModificationsIngredients().

◆ m_Ingredients

◆ m_IngredientSetHealth

float RecipeBase::m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS]
private

Definition at line 36 of file recipebase.c.

Referenced by ApplyModificationsIngredients().

◆ m_IngredientsSorted

ItemBase RecipeBase::m_IngredientsSorted[MAX_NUMBER_OF_INGREDIENTS]
private

Definition at line 11 of file recipebase.c.

Referenced by CheckIngredientMatch(), CheckRecipe(), PerformRecipe(), and RecipeBase().

◆ m_IngredientsToBeDeleted

ref array<ItemBase> RecipeBase::m_IngredientsToBeDeleted = new array<ItemBase>
private

Definition at line 16 of file recipebase.c.

Referenced by ApplyModificationsIngredients(), and DeleleIngredientsPass().

◆ m_IngredientUseSoftSkills

bool RecipeBase::m_IngredientUseSoftSkills[MAX_NUMBER_OF_INGREDIENTS]
private

Definition at line 33 of file recipebase.c.

Referenced by ApplyModificationsIngredients().

◆ m_IsInstaRecipe

bool RecipeBase::m_IsInstaRecipe
private

Definition at line 23 of file recipebase.c.

Referenced by IsInstaRecipe().

◆ m_Items

ItemBase RecipeBase::m_Items[MAX_NUMBER_OF_INGREDIENTS]
private

Definition at line 9 of file recipebase.c.

Referenced by CheckIngredientMatch().

◆ m_ItemsToCreate

string RecipeBase::m_ItemsToCreate[MAXIMUM_RESULTS]
private

Definition at line 6 of file recipebase.c.

Referenced by AddResult(), and SpawnItems().

◆ m_MaxDamageIngredient

float RecipeBase::m_MaxDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
private

Definition at line 31 of file recipebase.c.

Referenced by CheckConditions().

◆ m_MaxQuantityIngredient

float RecipeBase::m_MaxQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
private

Definition at line 29 of file recipebase.c.

Referenced by CheckConditions().

◆ m_MinDamageIngredient

float RecipeBase::m_MinDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
private

Definition at line 30 of file recipebase.c.

Referenced by CheckConditions().

◆ m_MinQuantityIngredient

float RecipeBase::m_MinQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
private

Definition at line 28 of file recipebase.c.

Referenced by CheckConditions().

◆ m_Name

string RecipeBase::m_Name
private

Definition at line 17 of file recipebase.c.

Referenced by GetName(), and RecipeBase().

◆ m_NumberOfResults

int RecipeBase::m_NumberOfResults
private

Definition at line 20 of file recipebase.c.

Referenced by AddResult(), ApplyModificationsResults(), RecipeBase(), and SpawnItems().

◆ m_PercentageUsed

float RecipeBase::m_PercentageUsed = 0.05
private

Definition at line 3 of file crafttannedleather.c.

Referenced by CanDo(), and Do().

◆ m_ResultInheritsColor

int RecipeBase::m_ResultInheritsColor[MAXIMUM_RESULTS]
private

Definition at line 46 of file recipebase.c.

Referenced by SpawnItems().

◆ m_ResultInheritsHealth

int RecipeBase::m_ResultInheritsHealth[MAXIMUM_RESULTS]
private

Definition at line 45 of file recipebase.c.

Referenced by ApplyModificationsResults().

◆ m_ResultReplacesIngredient

int RecipeBase::m_ResultReplacesIngredient[MAXIMUM_RESULTS]
private

Definition at line 47 of file recipebase.c.

Referenced by ApplyModificationsResults().

◆ m_ResultSetFullQuantity

bool RecipeBase::m_ResultSetFullQuantity[MAXIMUM_RESULTS]
private

Definition at line 40 of file recipebase.c.

Referenced by ApplyModificationsResults().

◆ m_ResultSetHealth

float RecipeBase::m_ResultSetHealth[MAXIMUM_RESULTS]
private

Definition at line 42 of file recipebase.c.

Referenced by ApplyModificationsResults().

◆ m_ResultSetQuantity

float RecipeBase::m_ResultSetQuantity[MAXIMUM_RESULTS]
private

Definition at line 41 of file recipebase.c.

Referenced by ApplyModificationsResults().

◆ m_ResultSpawnDistance

float RecipeBase::m_ResultSpawnDistance[MAXIMUM_RESULTS]
private

Definition at line 43 of file recipebase.c.

Referenced by RecipeBase(), and SpawnItems().

◆ m_ResultToInventory

int RecipeBase::m_ResultToInventory[MAXIMUM_RESULTS]
private

Definition at line 44 of file recipebase.c.

Referenced by SpawnItems().

◆ m_ResultUseSoftSkills

bool RecipeBase::m_ResultUseSoftSkills[MAXIMUM_RESULTS]
private

Definition at line 48 of file recipebase.c.

Referenced by ApplyModificationsResults().

◆ m_Specialty

float RecipeBase::m_Specialty = 0
private